Public Member Functions |
| Rectangle () |
| Rectangle (const Tuple< 4, T > &other) |
| Rectangle (T init) |
| Rectangle (T _left, T _top, T _right, T _bottom) |
T & | left () |
const T & | left () const |
T & | top () |
const T & | top () const |
T & | right () |
const T & | right () const |
T & | bottom () |
const T & | bottom () const |
T | width () const |
| Returns the width of the rectangle.
|
T | height () const |
| Returns the height of the rectangle.
|
T | area () const |
| Returns the area of the rectangle (width * height).
|
| Tuple () |
| Tuple (T init) |
| Initialize every element of the tuple to a single value.
|
bool | operator== (const Tuple< N, T > &rhs) const |
| Returns true when every element in the two tuples are identical.
|
bool | operator!= (const Tuple< N, T > &rhs) const |
| Returns true if there are any differences between the two tuples.
|
Tuple< N, T > & | operator+= (const Tuple< N, T > &rhs) |
| Adds every element of another tuple to the elements of this tuple.
|
Tuple< N, T > & | operator-= (const Tuple< N, T > &rhs) |
| Subtracts every element of another tuple from the elements of this tuple.
|
Tuple< N, T > & | operator*= (const T &rhs) |
| Multiplies every element in the tuple by a single value.
|
Tuple< N, T > & | operator/= (const T &rhs) |
| Divides every element in the tuple by a single value.
|
const Tuple< N, T > | operator+ (const Tuple< N, T > &rhs) const |
| Returns the result of adding another tuple to this tuple.
|
const Tuple< N, T > | operator- (const Tuple< N, T > &rhs) const |
| Returns the result of subtracting another tuple from this tuple.
|
const Tuple< N, T > | operator* (const T &rhs) const |
| Returns the result of multiplying this tuple by a single value.
|
const Tuple< N, T > | operator/ (const T &rhs) const |
| Returns the result of dividing this tuple by a single value.
|
T & | operator[] (unsigned int i) |
const T & | operator[] (unsigned int i) const |
template<typename T>
class Argus::Rectangle< T >
Rectangle template class.
This is a Tuple specialization containing 4 elements corresponding to the positions of the left, top, right, and bottom edges of a rectangle, in that order. Values can be accessed using the named methods.
Definition at line 760 of file Types.h.