Function normalize

  • Divides a vector by its Euclidean length and returns the quotient.

    Parameters

    • v: Vec4

      The vector.

    • Optional dst: Vec4

      vector to hold result. If not passed in a new one is created.

    Returns Vec4

    The normalized vector.