class Interval
Defined at line 16 of file ../../src/ui/lib/escher/geometry/interval.h
This class represents an interval on the real number line. The intervals
represented are closed (i.e. they contain the endpoints).
Public Methods
void Interval (float min, float max)
Non-empty interval. No error-checking; it is up to the caller to ensure that
all components of max are >= the corresponding component of min.
Defined at line 16 of file ../../src/ui/lib/escher/geometry/interval.cc
Interval Join (const Interval & interval)
Expand this interval to encompass the other. Return a new interval.
Defined at line 18 of file ../../src/ui/lib/escher/geometry/interval.cc
void Interval ()
Empty Interval - Set max smaller than min.
Defined at line 23 of file ../../src/ui/lib/escher/geometry/interval.h
float min ()
Defined at line 25 of file ../../src/ui/lib/escher/geometry/interval.h
float max ()
Defined at line 26 of file ../../src/ui/lib/escher/geometry/interval.h
bool operator== (const Interval & interval)
Defined at line 28 of file ../../src/ui/lib/escher/geometry/interval.h
bool operator!= (const Interval & interval)
Defined at line 31 of file ../../src/ui/lib/escher/geometry/interval.h
Interval Intersect (const Interval & interval)
Shrink this interval to be the intersection of this with the other. If the
intervals do not intersect, this interval becomes empty. Return a new interval.
Defined at line 31 of file ../../src/ui/lib/escher/geometry/interval.cc
bool is_empty ()
Defined at line 33 of file ../../src/ui/lib/escher/geometry/interval.h
float length ()
Defined at line 42 of file ../../src/ui/lib/escher/geometry/interval.h
bool Contains (const Interval & interval)
Return true if the other interval is completely contained by this one.
Defined at line 48 of file ../../src/ui/lib/escher/geometry/interval.h
bool Contains (const float & t)
Defined at line 52 of file ../../src/ui/lib/escher/geometry/interval.h