Method ConstrainYaw
ConstrainYaw(Quaternion)
Returns a rotation that only contains the yaw component of the specified rotation. The resulting rotation is not normalized.
Declaration
public static Quaternion ConstrainYaw(this Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | rotation | The source rotation. |
Returns
Type | Description |
---|---|
Quaternion | A yaw-only rotation that matches the input rotation's yaw. |