Beispiel #1
0
        internal Vector4D(
            float x      = 0,
            float y      = 0,
            float z      = 0,
            float w      = 0,
            float x_max  = float.MaxValue,
            float x_min  = float.MinValue,
            float y_max  = float.MaxValue,
            float y_min  = float.MinValue,
            float z_max  = float.MaxValue,
            float z_min  = float.MinValue,
            float w_max  = float.MaxValue,
            float w_min  = float.MinValue,
            float x_step = 1.0f,
            float y_step = 1.0f,
            float z_step = 1.0f,
            float w_step = 1.0f)
        {
            X = new Float(x, x_max, x_min, x_step);
            Y = new Float(y, y_max, y_min, y_step);
            Z = new Float(z, z_max, z_min, z_step);
            W = new Float(w, w_max, w_min, w_step);

            IsDynamicEquationEnabled = new Boolean();
            DynamicEquation          = new DynamicEquationReference();
        }
Beispiel #2
0
        internal IntWithInifinite(int value = 0, bool infinite = false, int max = int.MaxValue, int min = int.MinValue, int step = 1)
        {
            Value    = new Int(value, max, min, step);
            Infinite = new Boolean(infinite);

            IsDynamicEquationEnabled = new Boolean();
            DynamicEquation          = new DynamicEquationReference();
        }
Beispiel #3
0
        internal Float(float value = 0, float max = float.MaxValue, float min = float.MinValue, float step = 1.0f)
        {
            _max         = max;
            _min         = min;
            _value       = value.Clipping(_max, _min);
            Step         = step;
            DefaultValue = _value;

            IsDynamicEquationEnabled = new Boolean();
            DynamicEquation          = new DynamicEquationReference();
        }
Beispiel #4
0
        internal IntWithRandom(int value = 0, int max = int.MaxValue, int min = int.MinValue, DrawnAs drawnas = Data.DrawnAs.CenterAndAmplitude, int step = 1)
        {
            _value_center = value;
            _value_max    = value;
            _value_min    = value;
            _max          = max;
            _min          = min;
            DrawnAs       = drawnas;
            Step          = step;

            IsDynamicEquationEnabled = new Boolean();
            DynamicEquationMin       = new DynamicEquationReference();
            DynamicEquationMax       = new DynamicEquationReference();

            DefaultValueCenter = _value_center;
            DefaultValueMax    = _value_max;
            DefaultValueMin    = _value_min;
            DefaultDrawnAs     = DrawnAs;
        }
Beispiel #5
0
        internal FloatWithRandom(float value = 0, float max = float.MaxValue, float min = float.MinValue, DrawnAs drawnas = Data.DrawnAs.CenterAndAmplitude, float step = 1.0f)
        {
            _max          = max;
            _min          = min;
            _value_center = value.Clipping(_max, _min);
            _value_max    = value.Clipping(_max, _min);
            _value_min    = value.Clipping(_max, _min);

            IsDynamicEquationEnabled = new Boolean();
            DynamicEquationMin       = new DynamicEquationReference();
            DynamicEquationMax       = new DynamicEquationReference();

            DrawnAs = drawnas;
            Step    = step;

            DefaultValueCenter = _value_center;
            DefaultValueMax    = _value_max;
            DefaultValueMin    = _value_min;
            DefaultDrawnAs     = DrawnAs;
        }
 internal Vector3DWithRandom(
     float x         = 0,
     float y         = 0,
     float z         = 0,
     float x_max     = float.MaxValue,
     float x_min     = float.MinValue,
     float y_max     = float.MaxValue,
     float y_min     = float.MinValue,
     float z_max     = float.MaxValue,
     float z_min     = float.MinValue,
     DrawnAs drawnas = Data.DrawnAs.CenterAndAmplitude,
     float x_step    = 1.0f,
     float y_step    = 1.0f,
     float z_step    = 1.0f)
 {
     X = new FloatWithRandom(x, x_max, x_min, drawnas, x_step);
     Y = new FloatWithRandom(y, y_max, y_min, drawnas, y_step);
     Z = new FloatWithRandom(z, z_max, z_min, drawnas, z_step);
     IsDynamicEquationEnabled = new Boolean();
     DynamicEquationMin       = new DynamicEquationReference();
     DynamicEquationMax       = new DynamicEquationReference();
     DrawnAs        = drawnas;
     DefaultDrawnAs = DrawnAs;
 }