Class Triangle

  • public class Triangle
    extends Object
    • Constructor Detail

      • Triangle

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

        public Triangle​(Triangle src)
    • Method Detail

      • transform

        public Triangle transform​(AffineTransform t)
        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)