API Docs for: GoblinPhysics
Show:

GeometryMethods Class

Provides methods useful for working with various types of geometries

Methods

findBarycentricCoordinates

(
  • p
  • a
  • b
  • c
  • out
)

Finds the Barycentric coordinates of point p in the triangle a, b, c

Parameters:

  • p Vec3

    point to calculate coordinates of

  • a Vec3

    first point in the triangle

  • b Vec3

    second point in the triangle

  • c Vec3

    third point in the triangle

  • out Vec3

    resulting Barycentric coordinates of point p

findClosestPointInTriangle

(
  • p
  • a
  • b
  • c
  • out
)

determines the location in a triangle closest to a given point

Parameters:

  • p Vec3

    point

  • a Vec3

    first triangle vertex

  • b Vec3

    second triangle vertex

  • c Vec3

    third triangle vertex

  • out Vec3

    vector where the result will be stored