jakke-graphics-ts
    Preparing search index...

    Function normalize

    • Normalizes a 3D vertex vector so that its length becomes 1. If the input vector has zero length, returns a zero vector.

      Parameters

      • v: Vertex3d

        The input 3D vertex to normalize.

      Returns Vertex3d

      The normalized 3D vertex.