Package georegression.metric.alg
Class DistancePointTriangle3D_F32
java.lang.Object
georegression.metric.alg.DistancePointTriangle3D_F32
@Generated("georegression.metric.alg.DistancePointTriangle3D_F64")
public class DistancePointTriangle3D_F32
extends Object
Computes the closest point and distance between a triangle in 3D and the closest point on a triangle.
David Eberly, "Distance Between Point and Triangle in 3D", Geometric Tools, LLC, 1999
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclosestPoint(Point3D_F32 P, Point3D_F32 closestPt) Find the closest point on the triangle to P.protected voidregion0(float det) protected voidregion1()protected voidregion2()protected voidregion3()protected voidregion4()protected voidregion5()protected voidregion6()voidsetTriangle(Point3D_F32 p0, Point3D_F32 p1, Point3D_F32 p2) floatsign(Point3D_F32 P) Returns the signed of the vector.
-
Constructor Details
-
DistancePointTriangle3D_F32
public DistancePointTriangle3D_F32()
-
-
Method Details
-
setTriangle
-
closestPoint
Find the closest point on the triangle to P.- Parameters:
P- Input. The point for which the closest point is to be found.closestPt- Output. The found closest point.
-
sign
Returns the signed of the vector. If its "in front" it will be positive and negative if "behind". In front is defined as being on the same side as the cross product of p2-p0 and p1-p0.- Parameters:
P- Point for which the sign is determined
-
region0
protected void region0(float det) -
region1
protected void region1() -
region2
protected void region2() -
region3
protected void region3() -
region4
protected void region4() -
region5
protected void region5() -
region6
protected void region6()
-