All Packages Class Hierarchy This Package Previous Next Index
Class crw.awt.FloatRange
java.lang.Object
|
+----crw.awt.FloatRange
- public class FloatRange
- extends Object
A class for the Range of floating point values.
- Version:
- 1.0 2-11-1998
- Author:
- C.R.Wie
-
max
- The max-value of this point, usually used as the maximum value
if this FloatPoint is used to indicate the range for double values.
-
min
- The min-value of this point, usually used as the minimum value
if this FloatPoint is used to indicate the range for double values.
-
FloatRange()
- Default constructor, min=0.0 and max=0.0.
-
FloatRange(double, double)
- Sets the min- and max-values at the parameters.
-
FloatRange(FloatRange)
-
-
contains(double)
- Returns true if the value is within the range, inclusive.
-
setOrder()
- Sets the smaller value of the current min and max as the
min-value and the larger as the max-value.
-
union(FloatRange)
- Mergies this with another FloatRange.
min
public double min
- The min-value of this point, usually used as the minimum value
if this FloatPoint is used to indicate the range for double values.
max
public double max
- The max-value of this point, usually used as the maximum value
if this FloatPoint is used to indicate the range for double values.
FloatRange
public FloatRange()
- Default constructor, min=0.0 and max=0.0.
FloatRange
public FloatRange(double min,
double max)
- Sets the min- and max-values at the parameters.
- Parameters:
- min - the min-value
- max - the max-value
FloatRange
public FloatRange(FloatRange r)
setOrder
public void setOrder()
- Sets the smaller value of the current min and max as the
min-value and the larger as the max-value.
union
public void union(FloatRange r)
- Mergies this with another FloatRange.
- Parameters:
- r - the FloatRange to merge with.
contains
public boolean contains(double v)
- Returns true if the value is within the range, inclusive.
- Parameters:
- v - the value for containement.
All Packages Class Hierarchy This Package Previous Next Index