geometry.triangle

Classes

Point

A point defined by 2 floats representing a length on a normalized

Triangle

A 3 point Triangle on a 2D normalized orthogonal euclidean grid

Module Contents

class geometry.triangle.Point

A point defined by 2 floats representing a length on a normalized orthogonal coordinate system default coordinate is the origin

>>> Point(-1.0, 0.0)
Point(x=-1.0, y=0.0)
__post_init__() None
x: float = 0.0
y: float = 0.0
class geometry.triangle.Triangle

A 3 point Triangle on a 2D normalized orthogonal euclidean grid

>>> p1 = Point(-1.0,0.0)
>>> p2 = Point(1.0,0.0)
>>> p3 = Point(0.0,1.0)
>>> Triangle(p1, p2, p3)
Triangle(v1=Point(x=-1.0, y=0.0), v2=Point(x=1.0, y=0.0), v3=Point(x=0.0, y=1.0),
circum=Point(x=0.0, y=0.0), incen=Point(x=0.0, y=0.0),
ortho=Point(x=0.0, y=0.0))
__post_init__() None
circum: Point
property circumcenter: Point
incen: Point
property incenter: Point
ortho: Point
property orthocenter: Point
v1: Point
v2: Point
v3: Point