/// <summary> /// XNAQuaternionToVector4 converts an XNAQuaternion object holding Joint Orientation to a KinectSDK Vector4. /// </summary> /// <param name="quaternion">An XNA Quaternion object to be converted to a Kinect Vector4.</param> /// <returns>Returns a Kinect Vector4.</returns> public static Microsoft.Kinect.Vector4 XNAQuaternionToVector4(Quaternion quaternion) { Microsoft.Kinect.Vector4 converted = new Microsoft.Kinect.Vector4(); converted.X = quaternion.X; converted.Y = quaternion.Y; converted.Z = quaternion.Z; converted.W = quaternion.W; return converted; }