Skip to main content

Useful functions to work with geometry

Project description

Geomytry

Library for working with geometry

Install by running pip install geomytry or if on *NIX systems run pip3 install geomytry

The circles modules

The circumference function

from geomytry import circles
circles.circumference(10) # OUTPUTS 62.8
circles.circumference_from_diameter(20) # OUTPUTS 62.8
  • circles.circumference
    • Takes only 1 argument
      • The radius of the circle
  • circles.circumference_from_diameter
    • Takes 1 argument
      • Diameter of the circle

The radius function

from geomytry import circles
circles.radius(10) # OUTPUTS 3.1847
  • Finds the radius of a circle
    • Takes one parameter
      • The circumference of the circle

The arc length function

from geomytry import circles
circles.arc_length(30, 100) # OUTPUT 8.333
  • Finds the length of an arc using the given angle and circumference
    • Takes two parameters
      • measurement of the angle inside the circle
      • circumference of the circle

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

geomytry-0.0.3.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

geomytry-0.0.3-py3-none-any.whl (2.4 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