/** * Creates a new NormalizedDouble with the given value * @param value the value to set * @throws IllegalArgumentException if value is not in the range [0.0, 1.0] */ public NormalizedDouble(double value){ rangeCheck(value); myValue = value; }
/** * Creates a new NormalizedDouble with the given value * @param value the value to set * @throws IllegalArgumentException if value is not in the range [0.0, 1.0] */ public NormalizedDouble(double value){ rangeCheck(value); myValue = value; }