Package georegression.struct.line
Class LineParametric3D_F64
java.lang.Object
georegression.struct.line.LineParametric3D_F64
- All Implemented Interfaces:
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_F64
(boolean declare) Should it declare the point and slopeLineParametric3D_F64
(double x_0, double y_0, double z_0, double slopeX, double slopeY, double slopeZ) LineParametric3D_F64
(Point3D_F64 p, Vector3D_F64 slope) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
getPoint()
getPointOnLine
(double t) Returns a point along the line.final double
final double
final double
final double
getX()
final double
getY()
final double
getZ()
int
hashCode()
boolean
isIdentical
(LineParametric3D_F64 l, double tol) void
setPoint
(double x, double y, double z) void
setPoint
(Point3D_F64 pt) void
setPointOnLine
(double t, Point3D_F64 where) where = p + t*slope.void
setSlope
(double slopeX, double slopeY, double slopeZ) void
setSlope
(Vector3D_F64 slope) setTo
(double x_0, double y_0, double z_0, double slopeX, double slopeY, double slopeZ) toString()
void
zero()
-
Field Details
-
p
A point on the line -
slope
The line's slope
-
-
Constructor Details
-
LineParametric3D_F64
public LineParametric3D_F64(double x_0, double y_0, double z_0, double slopeX, double slopeY, double slopeZ) -
LineParametric3D_F64
-
LineParametric3D_F64
public LineParametric3D_F64() -
LineParametric3D_F64
-
LineParametric3D_F64
public LineParametric3D_F64(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(double x, double y, double z) -
setSlope
-
setSlope
public void setSlope(double slopeX, double slopeY, double 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 double getSlopeX() -
getSlopeY
public final double getSlopeY() -
getSlopeZ
public final double getSlopeZ() -
getX
public final double getX() -
getY
public final double getY() -
getZ
public final double getZ() -
setTo
public LineParametric3D_F64 setTo(double x_0, double y_0, double z_0, double slopeX, double slopeY, double slopeZ) -
setTo
-
zero
public void zero() -
isIdentical
-
copy
-
toString
-
equals
-
hashCode
public int hashCode()
-