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