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