geometry.triangle ================= .. py:module:: geometry.triangle Classes ------- .. autoapisummary:: geometry.triangle.Point geometry.triangle.Triangle Module Contents --------------- .. py:class:: 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) .. py:method:: __post_init__() -> None .. py:attribute:: x :type: float :value: 0.0 .. py:attribute:: y :type: float :value: 0.0 .. py:class:: 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) # doctest: +NORMALIZE_WHITESPACE 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)) .. py:method:: __post_init__() -> None .. py:attribute:: circum :type: Point .. py:property:: circumcenter :type: Point .. py:attribute:: incen :type: Point .. py:property:: incenter :type: Point .. py:attribute:: ortho :type: Point .. py:property:: orthocenter :type: Point .. py:attribute:: v1 :type: Point .. py:attribute:: v2 :type: Point .. py:attribute:: v3 :type: Point