navcat docs
    Preparing search index...

    Function closestHeightPointTriangle

    • Calculates the closest height point on a triangle using barycentric coordinates.

      Parameters

      • p: Vec3

        The point to project

      • a: Vec3

        First triangle vertex

      • b: Vec3

        Second triangle vertex

      • c: Vec3

        Third triangle vertex

      Returns number

      Height at position, or NaN if point is not inside triangle