Method ConstrainYawPitchNormalized
ConstrainYawPitchNormalized(Quaternion)
Returns a normalized rotation that only contains the yaw and pitch components of the specified rotation
Declaration
public static Quaternion ConstrainYawPitchNormalized(this Quaternion rotation)
Parameters
| Type | Name | Description |
|---|---|---|
| Quaternion | rotation | The source rotation. |
Returns
| Type | Description |
|---|---|
| Quaternion | A yaw- and pitch-only rotation that matches the input rotation's yaw and pitch. |