示例#1
0
 /// <summary>
 /// Copys a <see cref="Fusee.Math.Core.Vector4D"/> 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 Vector4DToArrayDouble(Fusee.Math.Core.Vector4D value, double *pDst)
 {
     pDst[0] = value.X;
     pDst[1] = value.Y;
     pDst[2] = value.Z;
     pDst[3] = value.W;
 }
示例#2
0
 /// <summary>
 /// Copys a <see cref="Fusee.Math.Core.Vector4D"/> 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 Vector4DToArrayFloat(Fusee.Math.Core.Vector4D value, float *pDst)
 {
     pDst[0] = (float)value.X;
     pDst[1] = (float)value.Y;
     pDst[2] = (float)value.Z;
     pDst[3] = (float)value.W;
 }
示例#3
0
        public virtual int VectorTakerVal4(Fusee.Math.Core.Vector4D /* cstype */ vec)
        {
            int ret = (SwigDerivedClassHasMethod("VectorTakerVal4", swigMethodTypes6) ? CppApiPINVOKE.VectorConsumer_VectorTakerVal4SwigExplicitVectorConsumer(swigCPtr, ref vec /* csin */) : CppApiPINVOKE.VectorConsumer_VectorTakerVal4(swigCPtr, ref vec /* csin */));

            if (CppApiPINVOKE.SWIGPendingException.Pending)
            {
                throw CppApiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#4
0
        public virtual int VectorTakerPtr4(ref Fusee.Math.Core.Vector4D /* cstype */ pVec)
        {
            int ret = (SwigDerivedClassHasMethod("VectorTakerPtr4", swigMethodTypes4) ? CppApiPINVOKE.VectorConsumer_VectorTakerPtr4SwigExplicitVectorConsumer(swigCPtr, ref pVec /* csin */) : CppApiPINVOKE.VectorConsumer_VectorTakerPtr4(swigCPtr, ref pVec /* csin */));

            return(ret);
        }
示例#5
0
 public static extern int VectorConsumer_VectorTakerVal4SwigExplicitVectorConsumer(HandleRef jarg1, ref Fusee.Math.Core.Vector4D /* imtype */ jarg2);
示例#6
0
 public static extern int VectorConsumer_VectorTakerPtr4(HandleRef jarg1, ref Fusee.Math.Core.Vector4D /* imtype */ jarg2);
示例#7
0
 /// <summary>
 /// Converts a <see cref="Fusee.Math.Core.Vector4D"/> 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[] Vector4DToArrayDouble(Fusee.Math.Core.Vector4D value)
 {
     return(new double[] { value.X, value.Y, value.Z, value.W });
 }
示例#8
0
 /// <summary>
 /// Converts a <see cref="Fusee.Math.Core.Vector4D"/> 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[] Vector4DToArrayFloat(Fusee.Math.Core.Vector4D value)
 {
     return(new float[] { (float)value.X, (float)value.Y, (float)value.Z, (float)value.W });
 }