Package georegression.struct.line
Class LineSegment2D_F32
java.lang.Object
georegression.struct.line.LineSegment2D_F32
- All Implemented Interfaces:
Serializable,MapFormattable
@Generated("georegression.struct.line.LineSegment2D_F64")
public class LineSegment2D_F32
extends Object
implements Serializable, MapFormattable
Defines a line segment by its two end points.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloataxisOnLineX(float fraction) Value of x-axis for a point on the line at this fractional location between 'a' and 'b'floataxisOnLineY(float fraction) Value of y-axis for a point on the line at this fractional location between 'a' and 'b'copy()booleanformatMap(MapPrintFormat format) floatfloatinthashCode()booleanisEquivalent(LineSegment2D_F32 other, float tol) True if the two line segments are the same, ignoring the order of their end points.booleanisIdentical(float ax, float ay, float bx, float by, float tol) booleanisIdentical(LineSegment2D_F32 other, float tol) Returns true if the value of the two line segments is within tol of each otherpointOnLine(float fraction, @Nullable Point2D_F32 p) Computes a point on the line based on the fraction distance between 'a' and 'b'setTo(float x0, float y0, float x1, float y1) setTo(Point2D_F32 a, Point2D_F32 b) floatslopeX()floatslopeY()toString()static LineSegment2D_F32wrap(Point2D_F32 a, Point2D_F32 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_F32
public LineSegment2D_F32() -
LineSegment2D_F32
-
LineSegment2D_F32
public LineSegment2D_F32(float x0, float y0, float x1, float y1)
-
-
Method Details
-
wrap
-
setTo
-
setTo
-
setTo
-
zero
public void zero() -
pointOnLine
Computes a point on the line based on the fraction distance between 'a' and 'b' -
axisOnLineX
public float axisOnLineX(float fraction) Value of x-axis for a point on the line at this fractional location between 'a' and 'b' -
axisOnLineY
public float axisOnLineY(float fraction) Value of y-axis for a point on the line at this fractional location between 'a' and 'b' -
slopeX
public float slopeX() -
slopeY
public float slopeY() -
getLength
public float getLength() -
getLength2
public float getLength2() -
copy
-
isEquivalent
True if the two line segments are the same, ignoring the order of their end points. -
isIdentical
Returns true if the value of the two line segments is within tol of each other -
isIdentical
public boolean isIdentical(float ax, float ay, float bx, float by, float tol) -
formatMap
- Specified by:
formatMapin interfaceMapFormattable
-
toString
-
equals
-
hashCode
public int hashCode()
-