Package com.jogamp.graph.geom
Class Triangle
java.lang.Object
com.jogamp.graph.geom.Triangle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean[]
int
getId()
Vertex[]
Returns array of 3 vertices, denominating the triangle.boolean[]
boolean
final boolean
isLine()
Returns true if all vertices are lines, i.e.final boolean
Returns true if all vertices are on-curve, otherwise false.boolean
void
setId
(int id) void
setVerticesBoundary
(boolean[] boundaryVertices) toString()
transform
(jogamp.graph.geom.plane.AffineTransform t, Vertex.Factory<? extends Vertex> vertexFactory) Returns a transformed a clone of this instance using the given AffineTransform.
-
Constructor Details
-
Triangle
-
Triangle
-
-
Method Details
-
transform
public Triangle transform(jogamp.graph.geom.plane.AffineTransform t, Vertex.Factory<? extends Vertex> vertexFactory) Returns a transformed a clone of this instance using the given AffineTransform. -
isOnCurve
public final boolean isOnCurve()Returns true if all vertices are on-curve, otherwise false. -
isLine
public final boolean isLine()Returns true if all vertices are lines, i.e. zero tex-coord, otherwise false. -
getId
public int getId() -
setId
public void setId(int id) -
getVertices
Returns array of 3 vertices, denominating the triangle. -
isEdgesBoundary
public boolean isEdgesBoundary() -
isVerticesBoundary
public boolean isVerticesBoundary() -
getEdgeBoundary
public boolean[] getEdgeBoundary() -
getVerticesBoundary
public boolean[] getVerticesBoundary() -
setVerticesBoundary
public void setVerticesBoundary(boolean[] boundaryVertices) -
toString
-