Skip to content

pyssage.classes.Triangle

Michael Rosenberg edited this page Jan 18, 2021 · 6 revisions

pyssage » pyssage.classes » pyssage.classes.Triangle

Triangle

A simple internal class that is used as part of tessellation determination. It is not currently used for data input.

Property Description
center Point: the center of the triangle
points list: a three-item list containing the vertices of the triangle, each of type Point
xc float: the x-coordinate of the center of the triangle
yc float: the y-coordinate of the center of the triangle
Method Description
find_circle() None: Determines the center of a circle that circumscribes the triangle
radius() float: returns the radius of the circle that circumscribes the triangle
x(i: int) float: returns the x-coordinate of the ith vertex of the triangle
y(i: int) float: returns the y-coordinate of the ith vertex of the triangle

Clone this wiki locally