2D (width,height) size structure. More...
#include <size.h>
Public Member Functions | |
| Sizex () | |
| Constructs a size structure. | |
| template<typename OtherType, typename std::enable_if_t< std::is_integral< Type >::value &&!std::is_integral< OtherType >::value, int > = 0> | |
| Sizex (const Sizex< OtherType > ©) | |
| template<typename OtherType, typename std::enable_if_t<!std::is_integral< Type >::value||std::is_integral< OtherType >::value, int > = 0> | |
| Sizex (const Sizex< OtherType > ©) | |
| Sizex (const Sizex< Type > &s)=default | |
| 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.
Referenced by Sizex(), Sizex(), operator!=(), operator*(), operator*=(), operator+(), operator+(), operator+=(), operator+=(), operator-(), operator-(), operator-=(), operator-=(), operator/(), operator/=(), and operator==().
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| Type clan::Sizex< Type >::height |
Size height.
Referenced by clan::Size::Size(), clan::Size::Size(), clan::Sized::Sized(), clan::Sized::Sized(), clan::Sizef::Sizef(), clan::Sizef::Sizef(), Sizex(), Sizex(), Sizex(), operator!=(), operator*(), operator*=(), operator+(), operator+(), operator+=(), operator+=(), operator-(), operator-(), operator-=(), operator-=(), operator/(), operator/=(), operator==(), and clan::Rectx< Type >::set_size().
| Type clan::Sizex< Type >::width |
Size width.
Referenced by clan::Size::Size(), clan::Size::Size(), clan::Sized::Sized(), clan::Sized::Sized(), clan::Sizef::Sizef(), clan::Sizef::Sizef(), Sizex(), Sizex(), Sizex(), operator!=(), operator*(), operator*=(), operator+(), operator+(), operator+=(), operator+=(), operator-(), operator-(), operator-=(), operator-=(), operator/(), operator/=(), operator==(), and clan::Rectx< Type >::set_size().