Package georegression.struct.line
Class LineSegment2D_I32
java.lang.Object
georegression.struct.line.LineSegment2D_I32
- All Implemented Interfaces:
Serializable,MapFormattable
Defines a line segment by its two end points.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanformatMap(MapPrintFormat format) doubleintinthashCode()setTo(int x0, int y0, int x1, int y1) setTo(Point2D_I32 a, Point2D_I32 b) intslopeX()intslopeY()toString()static LineSegment2D_I32wrap(Point2D_I32 a, Point2D_I32 b) voidzero()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ejml.MapFormattable
formatMap
-
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
-
formatMap
- Specified by:
formatMapin interfaceMapFormattable
-
toString
-
equals
-
hashCode
public int hashCode()
-