Package com.jogamp.graph.geom
Class Triangle
- java.lang.Object
-
- com.jogamp.graph.geom.Triangle
-
public class Triangle extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean[]
getEdgeBoundary()
int
getId()
Vertex[]
getVertices()
Returns array of 3 vertices, denominating the triangle.boolean[]
getVerticesBoundary()
boolean
isEdgesBoundary()
boolean
isLine()
Returns true if all vertices are lines, i.e.boolean
isOnCurve()
Returns true if all vertices are on-curve, otherwise false.boolean
isVerticesBoundary()
void
setId(int id)
void
setVerticesBoundary(boolean[] boundaryVertices)
String
toString()
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.
-
-
-
Method Detail
-
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
public Vertex[] 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)
-
-