/// <summary> /// Checks if the data value is less than or equal to the given value. /// </summary> /// <param name="value"></param> /// <returns></returns> public bool LessThanEqual(FloatData value) { return(Value <= value.Value); }
/// <summary> /// Checks if the data value is less than the given value. /// </summary> /// <param name="value"></param> /// <returns></returns> public bool LessThan(FloatData value) { return(Value < value.Value); }
/// <summary> /// Checks if the data value is greater than or equal to the given value. /// </summary> /// <param name="value"></param> /// <returns></returns> public bool GreaterThanEqual(FloatData value) { return(Value >= value.Value); }
/// <summary> /// Checks if the data value is not equal to the given value. /// </summary> /// <param name="value"></param> /// <returns></returns> public bool NotEqual(FloatData value) { return(!Value.Equals(value.Value)); }
/// <summary> /// Checks if the data value is greater than the given value. /// </summary> /// <param name="value"></param> /// <returns></returns> public bool GreaterThan(FloatData value) { return(Value > value.Value); }
/// <summary> /// Divides the data value by an amount. /// </summary> /// <param name="value"></param> public void DivideBy(FloatData value) { Value /= value.Value; }
/// <summary> /// Multiplies an amount to the data value. /// </summary> /// <param name="value"></param> public void MultiplyWith(FloatData value) { Value *= value.Value; }
/// <summary> /// Subtracts an amount from the data value. /// </summary> /// <param name="value"></param> public void SubtractFrom(FloatData value) { Value -= value.Value; }
/// <summary> /// Adds an amount to the data value. /// </summary> /// <param name="value"></param> public void AddTo(FloatData value) { Value += value.Value; }
/// <summary> /// Attempts to set the value of this data to the supplied value. /// </summary> /// <param name="value"></param> public void SetValue(FloatData value) { Value = value.Value; }