• Calculates the normal vector of a triangle defined by three points.

    Parameters

    • a: Vec3

      The first point of the triangle (3 elements).

    • b: Vec3

      The second point of the triangle (3 elements).

    • c: Vec3

      The third point of the triangle (3 elements).

    • normal: Vec3 = ...

      The destination vector to store the result (optional).

    Returns Vec3

    The normal vector of the triangle.