Package org.seamcat.model.geometry
Class LineSegment2D
- java.lang.Object
-
- org.seamcat.model.geometry.LineSegment2D
-
public class LineSegment2D extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LineSegment2D(Point2D point1, Point2D point2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Point2D
getA()
Point2D
getB()
int
hashCode()
static LineSegment2D
of(double x1, double y1, double x2, double y2)
java.lang.String
toString()
-
-
-
Method Detail
-
of
public static LineSegment2D of(double x1, double y1, double x2, double y2)
-
getA
public Point2D getA()
-
getB
public Point2D getB()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-