Package georegression.geometry
Class UtilLine3D_F32
java.lang.Object
georegression.geometry.UtilLine3D_F32
Various utilty functions related to lines in 3D
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
computeT
(LineParametric3D_F32 line, Point3D_F32 pointOnLine) Computes the value of T for a point on the parametric linestatic LineParametric3D_F32
convert
(LineSegment3D_F32 line, @Nullable LineParametric3D_F32 output) Converts aLineSegment3D_F32
intoLineParametric3D_F32
.
-
Constructor Details
-
UtilLine3D_F32
public UtilLine3D_F32()
-
-
Method Details
-
convert
public static LineParametric3D_F32 convert(LineSegment3D_F32 line, @Nullable @Nullable LineParametric3D_F32 output) Converts aLineSegment3D_F32
intoLineParametric3D_F32
.- Parameters:
line
- Line segmentoutput
- Storage for converted line. If null new line will be declared.- Returns:
- Line in parametric format
-
computeT
Computes the value of T for a point on the parametric line- Parameters:
line
- The linepointOnLine
- Point on a line- Returns:
- Value of T for the point
-