georegression.struct.line
Class LineParametric3D_F64
- java.lang.Object
-
- georegression.struct.line.LineParametric3D_F64
-
- All Implemented Interfaces:
- java.io.Serializable
public class LineParametric3D_F64 extends java.lang.Object implements java.io.Serializable3D 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description Point3D_F64pA point on the lineVector3D_F64slopeThe line's slope
-
Constructor Summary
Constructors Constructor and Description LineParametric3D_F64()LineParametric3D_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(LineParametric3D_F64 l)LineParametric3D_F64(Point3D_F64 p, Vector3D_F64 slope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description LineParametric3D_F64copy()Point3D_F64getP()Point3D_F64getPoint()Point3D_F64getPointOnLine(double t)Returns a point along the line.Vector3D_F64getSlope()doublegetSlopeX()doublegetSlopeY()doublegetSlopeZ()doublegetX()doublegetY()doublegetZ()voidset(double x_0, double y_0, double z_0, double slopeX, double slopeY, double slopeZ)voidset(LineParametric3D_F64 o)voidsetP(Point3D_F64 p)voidsetPoint(double x, double y, double z)voidsetPoint(Point3D_F64 pt)voidsetPointOnLine(double t, Point3D_F64 where)where = p + t*slope.voidsetSlope(double slopeX, double slopeY, double slopeZ)voidsetSlope(Vector3D_F64 slope)java.lang.StringtoString()
-
-
-
Field Detail
-
p
public Point3D_F64 p
A point on the line
-
slope
public Vector3D_F64 slope
The line's slope
-
-
Constructor Detail
-
LineParametric3D_F64
public LineParametric3D_F64(double x_0, double y_0, double z_0, double slopeX, double slopeY, double slopeZ)
-
LineParametric3D_F64
public LineParametric3D_F64(Point3D_F64 p, Vector3D_F64 slope)
-
LineParametric3D_F64
public LineParametric3D_F64()
-
LineParametric3D_F64
public LineParametric3D_F64(LineParametric3D_F64 l)
-
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 Detail
-
setPointOnLine
public void setPointOnLine(double t, Point3D_F64 where)where = p + t*slope.
-
setPoint
public void setPoint(Point3D_F64 pt)
-
setPoint
public void setPoint(double x, double y, double z)
-
setSlope
public void setSlope(Vector3D_F64 slope)
-
setSlope
public void setSlope(double slopeX, double slopeY, double slopeZ)
-
getPointOnLine
public Point3D_F64 getPointOnLine(double t)
Returns a point along the line. See parametric equation in class description.- Parameters:
t- Location along the line.- Returns:
- Point on the line.
-
getPoint
public Point3D_F64 getPoint()
-
getSlope
public Vector3D_F64 getSlope()
-
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()
-
set
public void set(double x_0, double y_0, double z_0, double slopeX, double slopeY, double slopeZ)
-
set
public void set(LineParametric3D_F64 o)
-
getP
public Point3D_F64 getP()
-
setP
public void setP(Point3D_F64 p)
-
copy
public LineParametric3D_F64 copy()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG