simd_normalize(_:)
Returns a quaternion pointing in the same direction as the supplied quaternion with a length of 1.
Declaration
func simd_normalize(_ q: simd_quatf) -> simd_quatfParameters
- q:
The vector to normalize.
Return Value
The normalized vector.
Discussion
This function returns an undefined value if the supplied vector has zero length or is poorly scaled such that an intermediate computation overflows or underflows.