Skip to main content

Light geometry library with essential function

Project description

LightGeometry

A python library with elementar function

note: every function returns float

pip install lightgeometry

  • circle_area(radius): returns area of a circle giving the radius ex: circle_area(3) = 28.27

  • circle_perimeter(radius): returns perimeter of a circle giving the radius ex: circle_perimeter(3) = 18.85

  • circle_radius(area): returns radius of a circle giving the area ex: circle_radius(4) = 1.13

  • rectangle_area(base, height): returns area of a rectangle or square giving base and optionally height ex: rectangle_area(2) = 4 / rectangle_area(2, 4) = 8

  • rectangle_diagonal(base, height): returns diagonal of a rectangle or square giving base and optionally height ex: rectangle_diagonal(2, 4) = 4.47

  • rectangle_perimeter(base, height): returns perimeter of a rectangle or square giving base and optionally height ex: rectangle_perimeter(2, 4) = 12

  • triangle_area(base, height): returns area of a triangle giving base and height ex: triangle_area(2, 6) = 6

  • triangle_height(base, area): returns height of a triangle giving base and area ex: triangle_area(2, 6) = 6

  • triangle_perimeter(base, area): returns perimeter of a triangle giving base and area ex: triangle_area(2, 6) = 16

  • polygon_perimeter(s1, s2...s): returns perimeter of a polygon giving differents sides ex: polygon_perimeter(1,5,3,6) = 15

  • distance_2d(x1,y1, x2,y2): returns distance between 2 points ex: distance_2d(1,1, 3,3) = 2, 2

  • distance_3d(x1,y1,z1, x2,y2,z2,): returns distance between 2 3d points ex: distance3d(1,1,1, 3,3,3) = 2, 2, 2

https://pypi.org/project/LightGeometry/

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

lightgeometry-1.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lightgeometry-1.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file lightgeometry-1.0.1.tar.gz.

File metadata

  • Download URL: lightgeometry-1.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for lightgeometry-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1394a20a04eca5d49c6f8cfc22ba4919386a8495a0c7dcfd9fe9ee335b586969
MD5 c2f3c9fd683f69e4bffbd21c64c07f38
BLAKE2b-256 517882aee677c466e3a63bfac5327c2b92167b680d50837afb634b20ac684dbf

See more details on using hashes here.

File details

Details for the file lightgeometry-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: lightgeometry-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for lightgeometry-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 694e2eb178d7705585897ec3c37a243605538d68d4beb51dce2001bf4cf96456
MD5 51e880d3196de96f12c468d5c7ae31f0
BLAKE2b-256 3837ba2dd73ef1075892d22bd47e8a3b281c7d64e822508d0dfdd9d510fa0309

See more details on using hashes here.

Supported by

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