Example #1
0
 /// <summary>
 /// Converts an ovrQuatf to a Wave Quaternion.
 /// </summary>
 /// <param name="ovrQuatf">ovrVector3f to convert to a SharpDX Vector3.</param>
 /// <param name="quaternion">Wave Vector3, based on the ovrVector3f.</param>
 public static void ToQuaternion(this OVR.Quaternionf ovrQuatf, out Quaternion quaternion)
 {
     quaternion.X = ovrQuatf.X;
     quaternion.Y = ovrQuatf.Y;
     quaternion.Z = ovrQuatf.Z;
     quaternion.W = ovrQuatf.W;
 }
Example #2
0
 /// <summary>
 /// Converts an ovrQuatf to a Wave Quaternion.
 /// </summary>
 /// <param name="ovrQuatf">The ovr quaternion</param>
 /// <returns>The Wave Quaternion</returns>
 public static Quaternion ToQuaternion(OVR.Quaternionf ovrQuatf)
 {
     return(new Quaternion(ovrQuatf.X, ovrQuatf.Y, ovrQuatf.Z, ovrQuatf.W));
 }