Package georegression.struct.line
Class LineSegment2D_F32
java.lang.Object
georegression.struct.line.LineSegment2D_F32
- All Implemented Interfaces:
Serializable
@Generated("georegression.struct.line.LineSegment2D_F64")
public class LineSegment2D_F32
extends Object
implements Serializable
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()booleanfloatfloatinthashCode()pointOnLine(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()
-
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
-
toString
-
equals
-
hashCode
public int hashCode()
-