Package georegression.struct.line
Class LineSegment2D_F64
java.lang.Object
georegression.struct.line.LineSegment2D_F64
- All Implemented Interfaces:
Serializable
Defines a line segment by its two end points.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
double
double
int
hashCode()
setTo
(double x0, double y0, double x1, double y1) setTo
(Point2D_F64 a, Point2D_F64 b) double
slopeX()
double
slopeY()
toString()
static LineSegment2D_F64
wrap
(Point2D_F64 a, Point2D_F64 b) void
zero()
-
Field Details
-
a
-
b
-
-
Constructor Details
-
LineSegment2D_F64
public LineSegment2D_F64() -
LineSegment2D_F64
-
LineSegment2D_F64
public LineSegment2D_F64(double x0, double y0, double x1, double y1)
-
-
Method Details
-
wrap
-
setTo
-
setTo
-
setTo
-
zero
public void zero() -
slopeX
public double slopeX() -
slopeY
public double slopeY() -
getLength
public double getLength() -
getLength2
public double getLength2() -
copy
-
toString
-
equals
-
hashCode
public int hashCode()
-