Quaternion4Extensions
Extension methods for the quaternion4 type. Every operation is applied per lane.
Read time 1 minuteLast updated 3 hours ago
Definition
- Type: Class
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public static class Quaternion4Extensions
Static Methods
Method | Description |
|---|---|
| Add | Returns q1 + q2 with q2 flipped into the hemisphere of q1. The result isn't normalized, so it can be used to accumulate weighted rotations. |
| Conjugate | Returns the conjugate of the quaternion4. |
| Dot | Returns the dot product of two quaternion4 values. |
| Hash | Computes a single hash code that combines all four quaternions of the quaternion4. |
| HashWide | Computes a separate hash code for each of the four quaternions of the quaternion4. |
| Mul | Computes the quaternion product of |
| Nlerp | Computes the normalized linear interpolation from |
| Normalize | Returns the normalized quaternion4. |
| NormalizeSafe | Returns the normalized quaternion4, or the identity for the lanes whose squared length isn't greater than FLT_MIN_NORMAL. |
| QuatWeight | Weights each rotation of the quaternion4 toward the identity rotation, for additive blending. |
| Select | Selects, for each lane, |
| ToFloat4x4 | Returns a float4x4 whose columns are the x, y, z and w planes of the quaternion4. |