Static methods
staticrotateTrianglePair(t:Triangle, p:Point, ot:Triangle, op:Point):Void
Rotates a triangle pair one vertex CW
n2 n2P +-----+ P +-----+ | t /| |\ t | | / | | \ | n1| / |n3 n1| \ |n3 | / | after CW | \ | |/ oT | | oT \| +-----+ oP +-----+
n4 n4
Constructor
Variables
Methods
containsPoint(point:Point):Bool
Test if this Triangle contains the Point object given as parameter as its vertices.
Returns:
True if the Point objects are of the Triangle's vertices,
false otherwise.isEdgeSide(ep:Point, eq:Point):Bool
Checks if a side from this triangle is an edge side. If sides are not marked they will be marked.
@return
Parameters:
ep | |
|---|---|
eq |
legalize(opoint:Point, ?npoint:Point):Void
Legalize triangle by rotating clockwise.
This method takes either 1 parameter (then the triangle is rotated around
points(0)) or 2 parameters (then the triangle is rotated around the first
parameter).
markNeighbor(t:Triangle, p1:Point, p2:Point):Void
Update neighbor pointers.
This method takes either 3 parameters (p1, p2 and
t) or 1 parameter (t).
Parameters:
t | Triangle object. |
|---|---|
p1 | Point object. |
p2 | Point object. |
