Package georegression.struct.line
Class LineParametric3D_F32
java.lang.Object
georegression.struct.line.LineParametric3D_F32
- All Implemented Interfaces:
Serializable
@Generated("georegression.struct.line.LineParametric3D_F64")
public class LineParametric3D_F32
extends Object
implements Serializable
3D line parameterized using parametric equation:
[x, y, z] = [x_0, y_0, z_0] + t·[slopeX, slopeY, slopeZ]
where t specifies the location along the line, (x_0,y_0,z_0) is an arbitrary point on the line,
and (slopeX,slopeY,slopeZ).
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionA point on the lineThe line's slope -
Constructor Summary
ConstructorDescriptionLineParametric3D_F32
(boolean declare) Should it declare the point and slopeLineParametric3D_F32
(float x_0, float y_0, float z_0, float slopeX, float slopeY, float slopeZ) LineParametric3D_F32
(Point3D_F32 p, Vector3D_F32 slope) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
getPoint()
getPointOnLine
(float t) Returns a point along the line.final float
final float
final float
final float
getX()
final float
getY()
final float
getZ()
int
hashCode()
boolean
isIdentical
(LineParametric3D_F32 l, float tol) void
setPoint
(float x, float y, float z) void
setPoint
(Point3D_F32 pt) void
setPointOnLine
(float t, Point3D_F32 where) where = p + t*slope.void
setSlope
(float slopeX, float slopeY, float slopeZ) void
setSlope
(Vector3D_F32 slope) setTo
(float x_0, float y_0, float z_0, float slopeX, float slopeY, float slopeZ) toString()
void
zero()
-
Field Details
-
p
A point on the line -
slope
The line's slope
-
-
Constructor Details
-
LineParametric3D_F32
public LineParametric3D_F32(float x_0, float y_0, float z_0, float slopeX, float slopeY, float slopeZ) -
LineParametric3D_F32
-
LineParametric3D_F32
public LineParametric3D_F32() -
LineParametric3D_F32
-
LineParametric3D_F32
public LineParametric3D_F32(boolean declare) Should it declare the point and slope- Parameters:
declare
- true means to declares the data otherwise they are left as null
-
-
Method Details
-
setPointOnLine
where = p + t*slope. -
setPoint
-
setPoint
public void setPoint(float x, float y, float z) -
setSlope
-
setSlope
public void setSlope(float slopeX, float slopeY, float slopeZ) -
getPointOnLine
Returns a point along the line. See parametric equation in class description.- Parameters:
t
- Location along the line.- Returns:
- Point on the line.
-
getPoint
-
getSlopeX
public final float getSlopeX() -
getSlopeY
public final float getSlopeY() -
getSlopeZ
public final float getSlopeZ() -
getX
public final float getX() -
getY
public final float getY() -
getZ
public final float getZ() -
setTo
public LineParametric3D_F32 setTo(float x_0, float y_0, float z_0, float slopeX, float slopeY, float slopeZ) -
setTo
-
zero
public void zero() -
isIdentical
-
copy
-
toString
-
equals
-
hashCode
public int hashCode()
-