/// <summary> /// Copys a <see cref="Fusee.Math.Core.double4"/> 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 double4ToArrayDouble(Fusee.Math.Core.double4 value, double *pDst) { pDst[0] = value.x; pDst[1] = value.y; pDst[2] = value.z; pDst[3] = value.w; }
/// <summary> /// Copys a <see cref="Fusee.Math.Core.double4"/> 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 double4ToArrayFloat(Fusee.Math.Core.double4 value, float *pDst) { pDst[0] = (float)value.x; pDst[1] = (float)value.y; pDst[2] = (float)value.z; pDst[3] = (float)value.w; }
/// <summary> /// Converts a <see cref="Fusee.Math.Core.double4"/> 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[] double4ToArrayDouble(Fusee.Math.Core.double4 value) { return(new double[] { value.x, value.y, value.z, value.w }); }
/// <summary> /// Converts a <see cref="Fusee.Math.Core.double4"/> 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[] double4ToArrayFloat(Fusee.Math.Core.double4 value) { return(new float[] { (float)value.x, (float)value.y, (float)value.z, (float)value.w }); }