Skip to content

kylestew/geom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python geometry library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages