Exemple #1
0
 /// <summary>
 /// Copys a <see cref="Fusee.Math.Core.Vector4F"/> to an existing double array.
 /// </summary>
 /// <param name="value">The source vector to convert.</param>
 /// <param name="pDst">A pointer to the destination double array [x, y, z]</param>
 public static unsafe void Vector4FToArrayDouble(Fusee.Math.Core.Vector4F value, double *pDst)
 {
     pDst[0] = value.X;
     pDst[1] = value.Y;
     pDst[2] = value.Z;
     pDst[3] = value.W;
 }
Exemple #2
0
 /// <summary>
 /// Copys a <see cref="Fusee.Math.Core.Vector4F"/> to an existing float array.
 /// </summary>
 /// <param name="value">The source vector to convert.</param>
 /// <param name="pDst">A pointer to the destination float array [x, y, z]</param>
 public static unsafe void Vector4FToArrayFloat(Fusee.Math.Core.Vector4F value, float *pDst)
 {
     pDst[0] = value.X;
     pDst[1] = value.Y;
     pDst[2] = value.Z;
     pDst[3] = value.W;
 }
Exemple #3
0
 /// <summary>
 /// Converts a <see cref="Fusee.Math.Core.Vector4F"/> to <see cref="Microsoft.DirectX.Vector4"/>.
 /// </summary>
 /// <param name="value">The vector to convert.</param>
 /// <returns>A <see cref="Microsoft.DirectX.Vector4"/> value.</returns>
 public static Microsoft.DirectX.Vector4 ToDirectX(Fusee.Math.Core.Vector4F value)
 {
     return(new Microsoft.DirectX.Vector4(value.X, value.Y, value.Z, value.W));
 }
Exemple #4
0
 /// <summary>
 /// Converts a <see cref="Fusee.Math.Core.Vector4F"/> to  a double array.
 /// </summary>
 /// <param name="value">The vector to convert.</param>
 /// <returns>A double array containing three values [x, y, z]</returns>
 public static double[] Vector4FToArrayDouble(Fusee.Math.Core.Vector4F value)
 {
     return(new double[] { value.X, value.Y, value.Z, value.W });
 }
Exemple #5
0
 /// <summary>
 /// Converts a <see cref="Fusee.Math.Core.Vector4F"/> to  a float array.
 /// </summary>
 /// <param name="value">The vector to convert.</param>
 /// <returns>A float array containing three values [x, y, z]</returns>
 public static float[] Vector4FToArrayFloat(Fusee.Math.Core.Vector4F value)
 {
     return(new float[] { value.X, value.Y, value.Z, value.W });
 }