GeometryMethods Class
Provides methods useful for working with various types of geometries
Item Index
Methods
findBarycentricCoordinates
(
-
p -
a -
b -
c -
out
Finds the Barycentric coordinates of point p in the triangle a, b, c
Parameters:
-
pVec3point to calculate coordinates of
-
aVec3first point in the triangle
-
bVec3second point in the triangle
-
cVec3third point in the triangle
-
outVec3resulting Barycentric coordinates of point
p
findClosestPointInTriangle
(
-
p -
a -
b -
c -
out
determines the location in a triangle closest to a given point
Parameters:
-
pVec3point
-
aVec3first triangle vertex
-
bVec3second triangle vertex
-
cVec3third triangle vertex
-
outVec3vector where the result will be stored
