Documentation of 'georegression.metric.alg.DistancePointTriangle3D_F64' Java class
DistancePointTriangle3D_F64
georegression.metric.alg

Class DistancePointTriangle3D_F64



  • public class DistancePointTriangle3D_F64
    extends java.lang.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 Detail

      • DistancePointTriangle3D_F64

        public DistancePointTriangle3D_F64()
    • Method Detail

      • closestPoint

        public void closestPoint(Point3D_F64 P,
                                 Point3D_F64 closestPt)
        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

        public double sign(Point3D_F64 P)
        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.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.