Class Triangle

java.lang.Object
com.jogamp.graph.geom.Triangle

public class Triangle extends Object
  • Constructor Details

    • Triangle

      public Triangle(Vertex v1, Vertex v2, Vertex v3, boolean[] boundaryVertices)
    • Triangle

      public Triangle(Triangle src)
  • 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

      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)
    • toString

      public String toString()
      Overrides:
      toString in class Object