closestPoint Method
Compute the projection of a barycentric point p to the triangle T(v_0,v_1,v_2).
closestPoint(b0: number, b1: number, b2: number): { closestEdgeIndex: number, closestEdgeParam: number }
@returns closest edge start vertex index i and projection parameter f such that the projection q = v_i + f * (v_j - v_i).
Returns - { closestEdgeIndex: number, closestEdgeParam: number }
closest edge start vertex index i and projection parameter f such that the projection q = v_i + f * (v_j - v_i).
Defined in
- geometry3d/BarycentricTriangle.ts Line 464
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.