#include <spDimensionSize2D.hpp>
Public Member Functions | |
size2d () | |
size2d (T Size) | |
size2d (T InitWidth, T InitHeight) | |
size2d (const size2d< T > &Other) | |
~size2d () | |
bool | operator== (const size2d< T > &Other) const |
bool | operator!= (const size2d< T > &Other) const |
bool | operator> (const size2d< T > &Other) const |
Returns true if this width and height are greater to the Other. | |
bool | operator< (const size2d< T > &Other) const |
Returns true if this width and height are smaller to the Other. | |
bool | operator>= (const size2d< T > &Other) const |
Returns true if this width and height are greater or equal to the Other. | |
bool | operator<= (const size2d< T > &Other) const |
Returns true if this width and height are small or equal to the Other. | |
size2d< T > | operator+ (const size2d< T > &Other) const |
size2d< T > & | operator+= (const size2d< T > &Other) |
size2d< T > | operator- (const size2d< T > &Other) const |
size2d< T > & | operator-= (const size2d< T > &Other) |
size2d< T > | operator/ (const size2d< T > &Other) const |
size2d< T > & | operator/= (const size2d< T > &Other) |
size2d< T > | operator* (const size2d< T > &Other) const |
size2d< T > & | operator*= (const size2d< T > &Other) |
size2d< T > | operator- () const |
T | getArea () const |
size2d< T > | getClampedSize (const size2d< T > &MaxSize) const |
Clamps this size to the specified maximum size and returns the new one. The aspect ratio remains the same. | |
template<typename B > | |
size2d< B > | cast () const |
Public Attributes | |
T | Width |
T | Height |
sp::dim::size2d< T >::size2d | ( | ) | [inline] |
sp::dim::size2d< T >::size2d | ( | T | Size | ) | [inline] |
sp::dim::size2d< T >::size2d | ( | T | InitWidth, | |
T | InitHeight | |||
) | [inline] |
sp::dim::size2d< T >::size2d | ( | const size2d< T > & | Other | ) | [inline] |
sp::dim::size2d< T >::~size2d | ( | ) | [inline] |
T sp::dim::size2d< T >::getArea | ( | ) | const [inline] |
size2d<T> sp::dim::size2d< T >::getClampedSize | ( | const size2d< T > & | MaxSize | ) | const [inline] |
Clamps this size to the specified maximum size and returns the new one. The aspect ratio remains the same.
bool sp::dim::size2d< T >::operator!= | ( | const size2d< T > & | Other | ) | const [inline] |
size2d<T> sp::dim::size2d< T >::operator* | ( | const size2d< T > & | Other | ) | const [inline] |
size2d<T>& sp::dim::size2d< T >::operator*= | ( | const size2d< T > & | Other | ) | [inline] |
size2d<T> sp::dim::size2d< T >::operator+ | ( | const size2d< T > & | Other | ) | const [inline] |
size2d<T>& sp::dim::size2d< T >::operator+= | ( | const size2d< T > & | Other | ) | [inline] |
size2d<T> sp::dim::size2d< T >::operator- | ( | const size2d< T > & | Other | ) | const [inline] |
size2d<T> sp::dim::size2d< T >::operator- | ( | ) | const [inline] |
size2d<T>& sp::dim::size2d< T >::operator-= | ( | const size2d< T > & | Other | ) | [inline] |
size2d<T> sp::dim::size2d< T >::operator/ | ( | const size2d< T > & | Other | ) | const [inline] |
size2d<T>& sp::dim::size2d< T >::operator/= | ( | const size2d< T > & | Other | ) | [inline] |
bool sp::dim::size2d< T >::operator< | ( | const size2d< T > & | Other | ) | const [inline] |
Returns true if this width and height are smaller to the Other.
bool sp::dim::size2d< T >::operator<= | ( | const size2d< T > & | Other | ) | const [inline] |
Returns true if this width and height are small or equal to the Other.
bool sp::dim::size2d< T >::operator== | ( | const size2d< T > & | Other | ) | const [inline] |
bool sp::dim::size2d< T >::operator> | ( | const size2d< T > & | Other | ) | const [inline] |
Returns true if this width and height are greater to the Other.
bool sp::dim::size2d< T >::operator>= | ( | const size2d< T > & | Other | ) | const [inline] |
Returns true if this width and height are greater or equal to the Other.
T sp::dim::size2d< T >::Height |
T sp::dim::size2d< T >::Width |