Class LineSegment2D


  • public class LineSegment2D
    extends java.lang.Object
    • Constructor Detail

      • LineSegment2D

        public LineSegment2D​(Point2D point1,
                             Point2D point2)
    • Method Detail

      • of

        public static LineSegment2D of​(double x1,
                                       double y1,
                                       double x2,
                                       double y2)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object