Triangle

class Triangle(a: Tessellator.Node, isABfromPolygon: Boolean, b: Tessellator.Node, isBCfromPolygon: Boolean, c: Tessellator.Node, isCAfromPolygon: Boolean)

Triangle in the tessellated mesh

Constructors

Link copied to clipboard
constructor(a: Tessellator.Node, isABfromPolygon: Boolean, b: Tessellator.Node, isBCfromPolygon: Boolean, c: Tessellator.Node, isCAfromPolygon: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun getEncodedX(vertex: Int): Int

get quantized x value for the given vertex

Link copied to clipboard
fun getEncodedY(vertex: Int): Int

get quantized y value for the given vertex

Link copied to clipboard
fun getX(vertex: Int): Double

get x value for the given vertex

Link copied to clipboard
fun getY(vertex: Int): Double

get y value for the given vertex

Link copied to clipboard
fun isEdgefromPolygon(startVertex: Int): Boolean

get if edge is shared with the polygon for the given edge

Link copied to clipboard
open override fun toString(): String

pretty print the triangle vertices