/// <summary>Initializes the struct with default values.</summary>
        public static VectorFieldOptions Default()
        {
            VectorFieldOptions value = new VectorFieldOptions();

            value.countX = 1;
            value.countY = 1;
            value.countZ = 1;
            value.bounds = new AABox();

            return(value);
        }
Example #2
0
 private static extern void Internal_create(VectorField managedInstance, ref VectorFieldOptions desc, Vector3[] values);
Example #3
0
 /// <summary>Creates a new vector field.</summary>
 /// <param name="desc">Description of the vector field to create.</param>
 /// <param name="values">
 /// Values to assign to the vector field. Number of entries must match  countX * countY * countZ.
 /// </param>
 public VectorField(VectorFieldOptions desc, Vector3[] values)
 {
     Internal_create(this, ref desc, values);
 }