2D (width,height) size structure. More...
#include <size.h>
Public Member Functions | |
Sizex () | |
Constructs a size structure. More... | |
Sizex (const Sizex< Type > &s) | |
Constructs a size structure. More... | |
Sizex (Type width, Type height) | |
Constructs a size structure. More... | |
operator Vec2< Type > () const | |
bool | operator!= (const Sizex< Type > &s) const |
Size != Size operator (deep compare). More... | |
Sizex< Type > | operator* (const Type &s) const |
Size * operator. More... | |
Sizex< Type > & | operator*= (const Type &s) |
Size *= operator. More... | |
Sizex< Type > | operator+ (const Sizex< Type > &s) const |
Size + Size operator. More... | |
Sizex< Type > | operator+ (const Type &s) const |
Size + operator. More... | |
Sizex< Type > & | operator+= (const Sizex< Type > &s) |
Size += Size operator. More... | |
Sizex< Type > & | operator+= (const Type &s) |
Size += operator. More... | |
Sizex< Type > | operator- (const Sizex< Type > &s) const |
Size - Size operator. More... | |
Sizex< Type > | operator- (const Type &s) const |
Size - operator. More... | |
Sizex< Type > & | operator-= (const Sizex< Type > &s) |
Size -= Size operator. More... | |
Sizex< Type > & | operator-= (const Type &s) |
Size -= operator. More... | |
Sizex< Type > | operator/ (const Type &s) const |
Size / operator. More... | |
Sizex< Type > & | operator/= (const Type &s) |
Size /= operator. More... | |
bool | operator== (const Sizex< Type > &s) const |
Size == Size operator (deep compare). More... | |
Public Attributes | |
Type | height |
Size height. More... | |
Type | width |
Size width. More... | |
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 |
|
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().