civpy.survey.TIN.barycentric_coords¶
-
TIN.
barycentric_coords
(self, point, simplex)[source]¶ Returns the local barycentric coordinates for the input point. If any of the coordinates are less than 0, then the projection of the point onto the plane of the triangle is outside of the triangle.
Parameters: - point : array
A point for which barycentric coordinates will be calculated. The point must be of shape (3,).
- simplex : int
The index of the simplex.