Skip to main content
PyPi package Travis CI build status (Linux) AppVeyor CI build status (Windows) Code Coverage Documentation Status

Python package for basic geometry operations.

Features

  • Lightweight: no dependencies outside Python’s standard library

  • Cross-platform: Linux, Mac and Windows are all supported

  • Works with with Python 2.7, 3.2, 3.3, and 3.4

Quick Guide

To install jicgeometry:

sudo pip install jicgeometry

Create some points:

>>> from jicgeometry import Point2D
>>> p1 = Point2D(6, 1)
>>> p2 = Point2D(3, 5)

Find the distances between two points:

>>> p1.distance(p2)
5.0

Add/subtract points from each other:

>>> p1 + p2
<Point2D(x=9, y=6, dtype=int)>

Scale points using multiplication/division:

>>> p1 / 2.0
<Point2D(x=3.00, y=0.50, dtype=float)>

Treat points as vectors:

>>> p1.unit_vector
<Point2D(x=0.99, y=0.16, dtype=float)>
>>> round(p1.magnitude, 4)
6.0828

History

0.6.0

  • Added Point3D class

0.5.0

  • Initial upload to PyPi

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jicgeometry-0.6.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file jicgeometry-0.6.0.tar.gz.

File metadata

  • Download URL: jicgeometry-0.6.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jicgeometry-0.6.0.tar.gz
Algorithm Hash digest
SHA256 f90aeefbe8f2929d068fcd7789780f70607df282fb866a7989a8d51182dc4c33
MD5 4164535012ac34f01801c6eec98c8aac
BLAKE2b-256 5491f9bbb090d5d4cfef7578e4cf396c5786d92c1f74000bd2a6d25722e9caaf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.0 This release

1 file

0.5.0

1 file

0.4.0

1 file

Supported by

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