Function normalFromTriangle

  • Calculate the face normal of a triangle, given the position of its corners, in counter-clockwise order.

    Parameters

    • a: Readonly<vec3>

      The first corner's position.

    • b: Readonly<vec3>

      The second corner's position.

    • c: Readonly<vec3>

      The third corner's position.

    • out: vec3 = temp0

      The vector to store the output in. If not provided, then a temporary SHARED vec3 is used, which is not safe to store.

    Returns vec3

Generated using TypeDoc