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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
axisOnLineX
(float fraction) Value of x-axis for a point on the line at this fractional location between 'a' and 'b'float
axisOnLineY
(float fraction) Value of y-axis for a point on the line at this fractional location between 'a' and 'b'copy()
boolean
float
float
int
hashCode()
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) float
slopeX()
float
slopeY()
toString()
static LineSegment2D_F32
wrap
(Point2D_F32 a, Point2D_F32 b) void
zero()
-
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()
-