2D (width,height) size structure. More...
#include <size.h>
Public Member Functions | |
Sizex () | |
Constructs a size structure. | |
Sizex (const Sizex< Type > &s) | |
Constructs a size structure. | |
Sizex (Type width, Type height) | |
Constructs a size structure. | |
operator Vec2< Type > () const | |
bool | operator!= (const Sizex< Type > &s) const |
Size != Size operator (deep compare). | |
Sizex< Type > | operator* (const Type &s) const |
Size * operator. | |
Sizex< Type > & | operator*= (const Type &s) |
Size *= operator. | |
Sizex< Type > | operator+ (const Sizex< Type > &s) const |
Size + Size operator. | |
Sizex< Type > | operator+ (const Type &s) const |
Size + operator. | |
Sizex< Type > & | operator+= (const Sizex< Type > &s) |
Size += Size operator. | |
Sizex< Type > & | operator+= (const Type &s) |
Size += operator. | |
Sizex< Type > | operator- (const Sizex< Type > &s) const |
Size - Size operator. | |
Sizex< Type > | operator- (const Type &s) const |
Size - operator. | |
Sizex< Type > & | operator-= (const Sizex< Type > &s) |
Size -= Size operator. | |
Sizex< Type > & | operator-= (const Type &s) |
Size -= operator. | |
Sizex< Type > | operator/ (const Type &s) const |
Size / operator. | |
Sizex< Type > & | operator/= (const Type &s) |
Size /= operator. | |
bool | operator== (const Sizex< Type > &s) const |
Size == Size operator (deep compare). | |
Public Attributes | |
Type | height |
Size height. | |
Type | width |
Size width. | |
2D (width,height) size structure.
These line templates are defined for: int (Size), float (Sizef), double (Sized)
|
inline |
Constructs a size structure.
|
inline |
Constructs a size structure.
width | Initial width of size structure. |
height | Initial height of size structure. |
|
inline |
Constructs a size structure.
s | = Size structure to construct this one from. |
|
inline |
|
inline |
Size != Size operator (deep compare).
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
Size * operator.
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
Size *= operator.
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
Size + operator.
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
Size += operator.
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
Size - operator.
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
Size -= operator.
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
Size / operator.
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
Size /= operator.
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
|
inline |
Size == Size operator (deep compare).
References clan::Sizex< Type >::height, clan::s, and clan::Sizex< Type >::width.
Type clan::Sizex< Type >::height |
Size height.
Referenced by clan::Size::Size(), clan::Sized::Sized(), clan::Sizef::Sizef(), clan::Sizex< double >::operator Vec2< double >(), clan::Sizex< Type >::operator!=(), clan::Sizex< Type >::operator*(), clan::Sizex< Type >::operator*=(), clan::Sizex< Type >::operator+(), clan::Sizex< Type >::operator+=(), clan::Sizex< Type >::operator-(), clan::Sizex< Type >::operator-=(), clan::Sizex< Type >::operator/(), clan::Sizex< Type >::operator/=(), clan::Sizex< Type >::operator==(), and clan::Rectx< Type >::set_size().
Type clan::Sizex< Type >::width |
Size width.
Referenced by clan::Size::Size(), clan::Sized::Sized(), clan::Sizef::Sizef(), clan::Sizex< double >::operator Vec2< double >(), clan::Sizex< Type >::operator!=(), clan::Sizex< Type >::operator*(), clan::Sizex< Type >::operator*=(), clan::Sizex< Type >::operator+(), clan::Sizex< Type >::operator+=(), clan::Sizex< Type >::operator-(), clan::Sizex< Type >::operator-=(), clan::Sizex< Type >::operator/(), clan::Sizex< Type >::operator/=(), clan::Sizex< Type >::operator==(), and clan::Rectx< Type >::set_size().