getTriangleBarycentricCoords(point:a:b:c:)

    Returns a Vector3 containing weights based on how close a 3D position (point) is to a triangle’s different vertices (a, b and c). This is useful for interpolating between the data of different vertices in a triangle. One example use case is using this to smoothly rotate over a mesh instead of relying solely on face normals.

    Geometry3D.swift:343
    static func getTriangleBarycentricCoords(point: Vector3, a: Vector3, b: Vector3, c: Vector3) -> Vector3

    Here is a more detailed explanation of barycentric coordinates.

    Other members in extension

    Type members