Skip to main content

A package for calculating the area/perimeter/volume of some geometric shapes.

Project description

ShapeCal

License Version Python Code Style

A package for calculating the area/perimeter/volume of some geometric shapes.


Installation

pip install ShapeCal

Usage

  • square
    • square.area() : Takes one float and returns area as a float.
    • square.perimeter() : Takes one float and returns perimeter as a float.
  • triangle
    • triangle.area() : Takes two floats (base, height) and returns area as a float.
    • triangle.perimeter() : Takes three floats (sideA, sideB, sideC) and returns perimeter as a float.
  • circle
    • circle.area() : Takes one float (radius) and returns area as a float.
    • circle.perimeter() : Takes one float (radius) and returns perimeter as a float.
  • trapezoid
    • trapezoid.area() : Takes three floats (short_base, long_base, height) and returns area as a float.
    • trapezoid.perimeter() : Takes four floats (short_base, long_base, sideA, sideB) and returns perimeter as a float.
  • cone
    • cone.volume() : Takes two floats (height, radius) and returns volume as a float.
    • cone.surfaceArea() : Takes two floats (height, radius) and returns surfaceArea as a float.
  • cube
    • cube.volume() : Takes one float (one float) and returns volume as a float.
    • cube.surfaceArea() : Takes one float (one float) and returns surfaceArea as a float.
  • cylinder
    • cylinder.volume() : Takes two floats (height, radius) and returns volume as a float.
    • cylinder.surfaceArea() : Takes two floats (height, radius) and returns surfaceArea as a float.
  • rectangularPrism
    • rectangularPrism.volume() : Takes three floats (lenght, width, height) and returns volume as a float.
    • rectangularPrism.surfaceArea() : Takes three floats (lenght, width, height) and returns surfaceArea as a float.
  • pyramid
    • pyramid.volume() : Takes three floats (lenght, width, height) and returns volume as a float.
    • pyramid.surfaceArea() : Takes three floats (lenght, width, height) and returns surfaceArea as a float.
  • sphere
    • sphere.volume() : Takes one float (radius) and returns volume as a float.
    • sphere.surfaceArea() : Takes one float (radius) and returns surfaceArea as a float.
  • hemisphere
    • hemisphere.volume() : Takes one float (radius) and returns volume as a float.
    • hemisphere.surfaceArea() : Takes one float (radius) and returns surfaceArea as a float.
  • frustrum
    • frustrum.volume() : Takes three floats (radiusTop, radiusBottom, height) and returns volume as a float.
    • frustrum.surfaceArea() : Takes three floats (radiusTop, radiusBottom, height) and returns surfaceArea as a float.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ShapeCal-0.0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

ShapeCal-0.0.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page