georegression.struct.line
Class LineParametric3D_F32
- java.lang.Object
-
- georegression.struct.line.LineParametric3D_F32
-
- All Implemented Interfaces:
- java.io.Serializable
public class LineParametric3D_F32 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_F32pA point on the lineVector3D_F32slopeThe line's slope
-
Constructor Summary
Constructors Constructor and Description LineParametric3D_F32()LineParametric3D_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(LineParametric3D_F32 l)LineParametric3D_F32(Point3D_F32 p, Vector3D_F32 slope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description LineParametric3D_F32copy()Point3D_F32getP()Point3D_F32getPoint()Point3D_F32getPointOnLine(float t)Returns a point along the line.Vector3D_F32getSlope()floatgetSlopeX()floatgetSlopeY()floatgetSlopeZ()floatgetX()floatgetY()floatgetZ()voidset(float x_0, float y_0, float z_0, float slopeX, float slopeY, float slopeZ)voidset(LineParametric3D_F32 o)voidsetP(Point3D_F32 p)voidsetPoint(float x, float y, float z)voidsetPoint(Point3D_F32 pt)voidsetPointOnLine(float t, Point3D_F32 where)where = p + t*slope.voidsetSlope(float slopeX, float slopeY, float slopeZ)voidsetSlope(Vector3D_F32 slope)java.lang.StringtoString()
-
-
-
Field Detail
-
p
public Point3D_F32 p
A point on the line
-
slope
public Vector3D_F32 slope
The line's slope
-
-
Constructor Detail
-
LineParametric3D_F32
public LineParametric3D_F32(float x_0, float y_0, float z_0, float slopeX, float slopeY, float slopeZ)
-
LineParametric3D_F32
public LineParametric3D_F32(Point3D_F32 p, Vector3D_F32 slope)
-
LineParametric3D_F32
public LineParametric3D_F32()
-
LineParametric3D_F32
public LineParametric3D_F32(LineParametric3D_F32 l)
-
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 Detail
-
setPointOnLine
public void setPointOnLine(float t, Point3D_F32 where)where = p + t*slope.
-
setPoint
public void setPoint(Point3D_F32 pt)
-
setPoint
public void setPoint(float x, float y, float z)
-
setSlope
public void setSlope(Vector3D_F32 slope)
-
setSlope
public void setSlope(float slopeX, float slopeY, float slopeZ)
-
getPointOnLine
public Point3D_F32 getPointOnLine(float 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_F32 getPoint()
-
getSlope
public Vector3D_F32 getSlope()
-
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()
-
set
public void set(float x_0, float y_0, float z_0, float slopeX, float slopeY, float slopeZ)
-
set
public void set(LineParametric3D_F32 o)
-
getP
public Point3D_F32 getP()
-
setP
public void setP(Point3D_F32 p)
-
copy
public LineParametric3D_F32 copy()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG