Function normalize

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

    Type Parameters

    Parameters

    • v: BaseArgType

      The quaternion.

    • Optional dst: T

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

    Returns T

    The normalized quaternion.