示例#1
0
 /// <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;
 }
示例#2
0
 /// <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));
 }
示例#3
0
 public static Vector2 QuaternionToYawPitch(OVRTypes.Quaternionf ovrQuatf)
 {
     return(QuaternionToYawPitch(new Quaternion(-ovrQuatf.X, -ovrQuatf.Y, -ovrQuatf.Z, ovrQuatf.W)));
 }