Top Fields Constructors Methods
com.jogamp.graph.geom

public Class Triangle

extends Object
Class Inheritance
Imports
com.jogamp.opengl.math.VectorUtil, jogamp.graph.geom.plane.AffineTransform

Field Summary

Modifier and TypeField and Description
private final boolean[]
private boolean[]
private int
private final Vertex[]

Constructor Summary

AccessConstructor and Description
public
Triangle(final Vertex v1, final Vertex v2, final Vertex v3, final boolean[] boundaryVertices)

public
Triangle(final Triangle src)

private
Triangle(final int id, final boolean[] boundaryEdges, final boolean[] boundaryVertices)

Method Summary

Modifier and TypeMethod and Description
public boolean[]
public int
public Vertex[]
getVertices()

Returns array of 3 vertices, denominating the triangle.

public boolean[]
public boolean
public final boolean
isLine()

Returns true if all vertices are lines, i.e. zero tex-coord, otherwise false.

public final boolean
isOnCurve()

Returns true if all vertices are on-curve, otherwise false.

public boolean
public void
setId(final int id)

public void
setVerticesBoundary(final boolean[] boundaryVertices)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public Triangle
transform(final AffineTransform t, final Vertex.Factory<? extends Vertex> vertexFactory)

Returns a transformed a clone of this instance using the given AffineTransform.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

boundaryEdgesback to summary
private final boolean[] boundaryEdges
boundaryVerticesback to summary
private boolean[] boundaryVertices
idback to summary
private int id
verticesback to summary
private final Vertex[] vertices

Constructor Detail

Triangleback to summary
public Triangle(final Vertex v1, final Vertex v2, final Vertex v3, final boolean[] boundaryVertices)
Triangleback to summary
public Triangle(final Triangle src)
Triangleback to summary
private Triangle(final int id, final boolean[] boundaryEdges, final boolean[] boundaryVertices)

Method Detail

getEdgeBoundaryback to summary
public boolean[] getEdgeBoundary()
getIdback to summary
public int getId()
getVerticesback to summary
public Vertex[] getVertices()

Returns array of 3 vertices, denominating the triangle.

getVerticesBoundaryback to summary
public boolean[] getVerticesBoundary()
isEdgesBoundaryback to summary
public boolean isEdgesBoundary()
isLineback to summary
public final boolean isLine()

Returns true if all vertices are lines, i.e. zero tex-coord, otherwise false.

isOnCurveback to summary
public final boolean isOnCurve()

Returns true if all vertices are on-curve, otherwise false.

isVerticesBoundaryback to summary
public boolean isVerticesBoundary()
setIdback to summary
public void setId(final int id)
setVerticesBoundaryback to summary
public void setVerticesBoundary(final boolean[] boundaryVertices)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
transformback to summary
public Triangle transform(final AffineTransform t, final Vertex.Factory<? extends Vertex> vertexFactory)

Returns a transformed a clone of this instance using the given AffineTransform.