Class Triangle


  • public class Triangle
    extends Object
    Author:
    jfc173
    • Constructor Detail

      • Triangle

        public Triangle​(Edge e1,
                        Edge e2,
                        Edge e3)
        Creates a new instance of Triangle
    • Method Detail

      • relate

        public int relate​(XYNode n)
      • getBoundaryEdge

        public Edge getBoundaryEdge​(XYNode n)
      • getThirdNode

        public Node getThirdNode​(Edge e)
      • getOppositeEdge

        public Edge getOppositeEdge​(Node n)
      • getEdges

        public Edge[] getEdges()
      • getNodes

        public Node[] getNodes()
      • getArea

        public double getArea()
      • containsEdge

        public boolean containsEdge​(Edge e)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object