Static methods

staticrotateTrianglePair(t:Triangle, p:Point, ot:Triangle, op:Point):Void

Rotates a triangle pair one vertex CW

  n2                    n2

P +-----+ P +-----+ | t /| |\ t | | / | | \ | n1| / |n3 n1| \ |n3 | / | after CW | \ | |/ oT | | oT \| +-----+ oP +-----+

  n4                    n4

Constructor

@:value({ checkOrientation : true, fixOrientation : false })new(p1:Point, p2:Point, p3:Point, fixOrientation:Bool = false, checkOrientation:Bool = true)

Variables

constrained_edge:Array<Bool>

delaunay_edge:Array<Bool>

@:value(-1)id:Int = -1

points:Array<Point>

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.

edgeIndex(p1:Point, p2:Point):Int

inlinegetDelaunayEdgeCW(p:Point):Bool

@:value({ offset : 0 })getPointIndexOffset(p:Point, offset:Int = 0):Int

inlineindex(p:Point):Int

Alias for getPointIndexOffset

Parameters:

null

p

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

@:value({ npoint : null })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.

inlineneighborAcross(p:Point):Triangle

The neighbor across to given point.

inlinesetConstrainedEdgeCCW(p:Point, ce:Bool):Bool

inlinesetConstrainedEdgeCW(p:Point, ce:Bool):Bool

inlinesetDelaunayEdgeCCW(p:Point, e:Bool):Bool

inlinesetDelaunayEdgeCW(p:Point, e:Bool):Bool

toString():String