![]() |
nomlib
|
Size coordinates (width & height) container. More...
#include <Size2.hpp>
Public Member Functions | |
| Size2 (void) | |
| Default constructor; initialize values to Size2<T>::null. | |
| ~Size2 (void) | |
| Destructor. | |
| Size2 (T w, T h) | |
| Constructor variant for initializing width & height at construction. | |
| template<typename U> | |
| Size2 (const Size2< U > ©) | |
| Copy constructor. | |
| template<typename U> | |
| Size2 | max (const Size2< U > &rhs) |
| Compare two Size2 objects and return the larger width and height of the two objects. | |
| template<typename U> | |
| Size2 | min (const Size2< U > &rhs) |
| Compare two Size2 objects and return the smaller width and height of the two objects. | |
| void | swap (void) |
| Transpose width and height dimensions. | |
Public Attributes | |
| T | w |
| Represents the width coordinate point. | |
| T | h |
| Represents the height coordinate point. | |
Static Public Attributes | |
| static const Size2 | null |
| Null value. | |
| static const Size2 | zero |
| Zero value constant. | |
Size coordinates (width & height) container.
|
inline |
Default constructor; initialize values to Size2<T>::null.
|
inline |
|
inline |
|
inlineexplicit |
Copy constructor.
|
inline |
|
inline |
|
inline |
| T nom::Size2< T >::h |
|
static |
| T nom::Size2< T >::w |
|
static |