Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 965 Bytes

README.md

File metadata and controls

64 lines (41 loc) · 965 Bytes

GEOM

A geometry data and functions library inspired by thi.ng/geom

GEOM is split into multiple sub-packages

DAT: geom.data

A collection of data forward geometry shapes (rectangle, circle, polygon)

  • Arc
  • Circle
  • Cubic
  • Ellipse
  • Grid
  • Line
  • Point
  • Polygon
  • Rect
  • Triangle

OPS: geom.ops

Functions that take data (from geom.data) and perform geometric related algorithms on them (i.e. resample, find bounds, etc)

  • vertices

  • as_polygon

  • area

  • bounds

  • centroid

  • contains

  • point_at

  • point_inside

  • intersects

  • rotate

  • scale

  • translate

  • scatter_pts

  • resample

  • split_at

  • triangulate ???

  • convex_hull ???

  • edges ???

MATH: geom.math

Mathmatical helper functions

Testing

This repo is meant to be grown test first. New functionality should be created using tests to define the shape and usage thereof.

Using pytest

$ pytest