Normalize(quaternion4)
Returns the normalized quaternion4.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public static quaternion4 Normalize(this quaternion4 q)
Parameters
The quaternion4 to normalize.
Returns
Type | Description |
|---|---|
| quaternion4 | A quaternion4 in which each quaternion has a length of 1. |
Remarks
A lane with a length of 0 produces non-finite values. To avoid that, use Quaternion4Extensions.NormalizeSafe.