math docs
    Preparing search index...

    Function normal

    • Computes the normal vector of a triangle defined by three vertices.

      Parameters

      • out: vec3.Vec3

        the output vector to store the result.

      • a: readonly [number, number, number]

        the first vertex of the triangle.

      • b: readonly [number, number, number]

        the second vertex of the triangle.

      • c: readonly [number, number, number]

        the third vertex of the triangle.

      Returns vec3.Vec3

      the output vector containing the normal of the triangle.