Package georegression.struct.line
Class LineSegment3D_F32
java.lang.Object
georegression.struct.line.LineSegment3D_F32
- All Implemented Interfaces:
Serializable
@Generated("georegression.struct.line.LineSegment3D_F64")
public class LineSegment3D_F32
extends Object
implements Serializable
Defines a line segment by its two end points.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLineSegment3D_F32
(float x0, float y0, float z0, float x1, float y1, float z1) -
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'float
axisOnLineZ
(float fraction) Value of z-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 Point3D_F32 p) Computes a point on the line based on the fraction distance between 'a' and 'b'setTo
(float x0, float y0, float z0, float x1, float y1, float z1) setTo
(Point3D_F32 a, Point3D_F32 b) float
slopeX()
float
slopeY()
float
slopeZ()
toString()
static LineSegment3D_F32
wrap
(Point3D_F32 a, Point3D_F32 b) void
zero()
-
Field Details
-
a
-
b
-
-
Constructor Details
-
LineSegment3D_F32
public LineSegment3D_F32() -
LineSegment3D_F32
-
LineSegment3D_F32
public LineSegment3D_F32(float x0, float y0, float z0, float x1, float y1, float z1)
-
-
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' -
axisOnLineZ
public float axisOnLineZ(float fraction) Value of z-axis for a point on the line at this fractional location between 'a' and 'b' -
slopeX
public float slopeX() -
slopeY
public float slopeY() -
slopeZ
public float slopeZ() -
getLength
public float getLength() -
getLength2
public float getLength2() -
copy
-
toString
-
equals
-
hashCode
public int hashCode()
-