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:
-
p
Vec3point to calculate coordinates of
-
a
Vec3first point in the triangle
-
b
Vec3second point in the triangle
-
c
Vec3third point in the triangle
-
out
Vec3resulting Barycentric coordinates of point
p
findClosestPointInTriangle
(
-
p
-
a
-
b
-
c
-
out
determines the location in a triangle closest to a given point
Parameters:
-
p
Vec3point
-
a
Vec3first triangle vertex
-
b
Vec3second triangle vertex
-
c
Vec3third triangle vertex
-
out
Vec3vector where the result will be stored