Skip to main content

Light geometry library with essential function

Project description

LightGeometry

A python library with elementar function

note: every function returns float

  • 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

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.0.tar.gz (3.1 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.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lightgeometry-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 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.0.tar.gz
Algorithm Hash digest
SHA256 e2db41b6bb19fbfe7df34994ed884534448f7ba107516690993aff3c09a81ef7
MD5 6ce23199f1497a5602683a7f1f139224
BLAKE2b-256 1d4ff8efddf3424491067901187f7c9f200791c08db9f980f8a6a7871acfd7f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lightgeometry-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb8fe6393aa1033ff87f764571589924daf6c99be834c1f79876af64ab785d89
MD5 4e96aadd2804eb27adfbca484fd72f8c
BLAKE2b-256 553620d06a5701f5174c1a7aaaaa08404f433b9eca3aa2751d9ce503d7e4363c

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