RiInterval[ Math | Source | Search | Keywords | Summary | Ancestors | All Members | Descendants ]
| public: | |
| // Constructors | |
| RiInterval(); | |
| RiInterval(RiReal val); | |
| RiInterval(RiReal min, RiReal max); | |
| // Accessors | |
| RiReal | Min() const; |
| RiReal | Max() const; |
| bool | IsEmpty() const; |
| RiReal | Width() const; |
| RiReal | Center() const; |
| bool | In(RiReal) const; |
| // Set operators | |
| const RiInterval & | operator&=(const RiInterval &); |
| const RiInterval &operator|= | =(const RiInterval &); |
| // Arithmetic operators | |
| const RiInterval &operator+= | =(const RiInterval &); |
| const RiInterval & | operator-=(const RiInterval &); |
| const RiInterval &operator*= | =(const RiInterval &); |
| const RiInterval &operator/= | =(RiReal f); |
| RiInterval | operator-() const; |
| protected: |
RiInterval();
Constructs an empty interval (max < min)
RiInterval();
RiInterval(RiReal val);
RiInterval(RiReal min, RiReal max);
RiReal Min() const;
RiReal Max() const;
bool IsEmpty() const;
RiReal Width() const;
RiReal Center() const;
bool In(RiReal) const;
const RiInterval &operator&=(const RiInterval &);
const RiInterval &operator|=(const RiInterval &);
const RiInterval &operator+=(const RiInterval &);
const RiInterval &operator-=(const RiInterval &);
const RiInterval &operator*=(const RiInterval &);
const RiInterval &operator/=(RiReal f);
RiInterval operator-() const;
| public: | ||
|---|---|---|
| // Accessors | ||
| RiReal | Min() const; | |
| RiReal | Max() const; | |
| bool | IsEmpty() const; | |
| RiReal | Width() const; | |
| RiReal | Center() const; | |
| bool | In(RiReal) const; | |
| // Set operators | ||
| const RiInterval & | operator&=(const RiInterval &); | |
| const RiInterval &operator|= | =(const RiInterval &); | |
| // Arithmetic operators | ||
| const RiInterval &operator+= | =(const RiInterval &); | |
| const RiInterval & | operator-=(const RiInterval &); | |
| const RiInterval &operator*= | =(const RiInterval &); | |
| const RiInterval &operator/= | =(RiReal f); | |
| RiInterval | operator-() const; | |
| protected: | ||