/// <summary> /// Converts an ovrQuatf to a Wave Quaternion. /// </summary> /// <param name="ovrQuatf">ovrVector3f to convert to a Wave Vector3.</param> /// <param name="quaternion">Wave Vector3, based on the ovrVector3f.</param> public static void ToQuaternion(this OVRTypes.Quaternionf ovrQuatf, out Quaternion quaternion) { quaternion.X = ovrQuatf.X; quaternion.Y = ovrQuatf.Y; quaternion.Z = ovrQuatf.Z; quaternion.W = ovrQuatf.W; }
/// <summary> /// Converts an ovrQuatf to a SharpDX Quaternion. /// </summary> public static Quaternion ToQuaternion(this OVRTypes.Quaternionf ovrQuatf) { return(new Quaternion(ovrQuatf.X, ovrQuatf.Y, ovrQuatf.Z, ovrQuatf.W)); }
public static Vector2 QuaternionToYawPitch(OVRTypes.Quaternionf ovrQuatf) { return(QuaternionToYawPitch(new Quaternion(-ovrQuatf.X, -ovrQuatf.Y, -ovrQuatf.Z, ovrQuatf.W))); }