Skip to main content

A Euclidean Geometry based library

Project description

Euclipy

PyPI version PyPI downloads

A library used to create, model, and solve figures in Euclidean Geometry.

Features:

  • Create points, line segments, angles, and triangles with Point(), Segment(), Angle(), and Triangle(), respectively
  • Implicitly defines segments and angles created by polygon constructions
  • Keeps a registry of all defined objects, implicit or explicit

Installation

# PyPi Installation
pip install euclipy

Sample Code (With Comments):

from euclipy import Point, Triangle, Registry

# Create 3 unique points
A = Point('A')
B = Point('B')
C = Point('C')

# Create identical triangles
T1 = Triangle([A, B, C])
T2 = Triangle([B, C, A])

print(T1.edges)    # Prints line segments created by T1
print(T1.angles)    # Prints angles created by T1

# Tries to create inconsistent triangle
try:
    T3 = Triangle([B, A, C])
except:
    print('Inconsistent triangle')
    
# Prints all created objects
print(Registry().entries)

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

euclipy-0.2.5.tar.gz (6.8 kB view details)

Uploaded Source

File details

Details for the file euclipy-0.2.5.tar.gz.

File metadata

  • Download URL: euclipy-0.2.5.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for euclipy-0.2.5.tar.gz
Algorithm Hash digest
SHA256 d948103cc2177e68bdeb89d081d241fa1863be53c3cf5767a241d05f1ba7d23c
MD5 302101c0bd8a9c4fd3e3d700dec005a5
BLAKE2b-256 826c508ea39d0f2af73994fbd9e34aece0e14eeda57796b1415c263bf253085c

See more details on using hashes here.

Supported by

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