Esempio n. 1
0
 private static void ToVector4(ref Microsoft.Kinect.Vector4 input, out Xenko.Core.Mathematics.Vector4 output)
 {
     output = Unsafe.As <Microsoft.Kinect.Vector4, Xenko.Core.Mathematics.Vector4>(ref input);
 }
Esempio n. 2
0
 /// <summary>
 /// Converts a Kinect Vector4 into a Xenko Vector4
 /// </summary>
 /// <param name="vector4">Kinect Vector4</param>
 /// <returns>Xenko Vector4</returns>
 public static Xenko.Core.Mathematics.Vector4 ToVector4(Microsoft.Kinect.Vector4 vector4)
 {
     Xenko.Core.Mathematics.Vector4 v4 = new Xenko.Core.Mathematics.Vector4();
     TypeConverter.ToVector4(ref vector4, out v4);
     return(v4);
 }