Skip to main content

A simple Python library for 2D geometry.

Project description

Geometry Library

A simple Python library for 2D geometry, including core concepts like points, lines, circles, rectangles, and polygons, with basic operations such as calculating distance, area, and perimeter.

Features

  • Point: Represents a point in 2D space with x and y coordinates.
  • Line: Represents a line defined by two points.
  • Circle: Represents a circle defined by a center point and a radius.
  • Rectangle: Represents a rectangle defined by its top-left corner, width, and height.
  • Polygon: Represents a polygon defined by a list of points.
  • Basic operations:
    • Distance between points
    • Length of a line
    • Area and perimeter of circles, rectangles, and polygons

Installation

Assuming you have the library code in a directory named geometry_library_package with the correct structure (including setup.py), you can install it locally using pip:

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

geometry_library-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

geometry_library-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file geometry_library-0.1.0.tar.gz.

File metadata

  • Download URL: geometry_library-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for geometry_library-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ac6ac7dafb0a64e4021166a007e07552711a57f0e93bc9a7ae6edde59a84c45
MD5 e8e4b01574598971768634cbe3627347
BLAKE2b-256 17f8abc7fdaf5782e727cd8fd3964a4615406cfe4468f3e2317e226dadea8d13

See more details on using hashes here.

File details

Details for the file geometry_library-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for geometry_library-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d0aae9f8edd93b4e48842ce43a9568b9913a50edf6ff75d7db1940a5d110b20
MD5 081c3c4ae0803a950ac4e1954dfbc40d
BLAKE2b-256 741e8d3a2d751ec727f9f593a99e893e0915c23e25401ece744e025c8cd6d331

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