All Packages  This Package  Class Hierarchy  Class Search  Index

Class kh.math.DoubleRange
java.lang.Object
   |
   +----kh.math.DoubleRange

  Summary

public class  DoubleRange
     extends java.lang.Object
{
          // Fields 2
     public double lower;
     public double upper;

          // Constructors 1
     public DoubleRange(double, double);

          // Methods 2
     public DoubleRange getIntersection(DoubleRange);
     public boolean inBounds(double);
}

This class describes a range of two doubles and supports access to the lower and upper values and range checking.


  Cross Reference

Returned By:
AnalogDigitalDial.getAdvisoryRanges(), AnalogDigitalDial.getWarningRanges(), Dial.getAdvisoryRanges(), Dial.getWarningRanges(), MultiDial.getAdvisoryRanges(), MultiDial.getWarningRanges(), DoubleRange.getIntersection(), WarningValueReceiver.getAdvisoryRanges(), WarningValueReceiver.getWarningRanges()





  Fields

· lower

Summary  |  Top
   public double lower


· upper

Summary  |  Top
   public double upper


  Constructors

· DoubleRange

Summary  |  Top

   public DoubleRange(double _lower, 
                      double _upper) 


  Methods

· getIntersection

Summary  |  Top
   public DoubleRange getIntersection(DoubleRange other) 

Returns the common subrange shared by both segments - or null for no common range



· inBounds

Summary  |  Top
   public boolean inBounds(double x) 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7