37 template<
typename Type>
40 template<
typename Type>
43 template<
typename Type>
50 template<
typename Type>
62 : width(width), height(height) { }
108 width +=
s; height +=
s;
return *
this;
114 width -=
s; height -=
s;
return *
this;
120 width *=
s; height *=
s;
return *
this;
126 width /=
s; height /=
s;
return *
this;
Sizex< Type > & operator/=(const Type &s)
Size /= operator.
Definition: size.h:124
Size()
Definition: size.h:170
Sizex< Type > operator/(const Type &s) const
Size / operator.
Definition: size.h:148
Sizef(const Sizex< float > &s)
Definition: size.h:185
Sizex< Type > operator-(const Type &s) const
Size - operator.
Definition: size.h:136
2D (width,height) size structure - Integer
Definition: size.h:167
Sizex()
Constructs a size structure.
Definition: size.h:55
2D (width,height) size structure - Double
Definition: size.h:193
2D vector
Definition: line.h:43
Sizef(float width, float height)
Definition: size.h:184
2D (width,height) size structure.
Definition: size.h:51
Sizex< Type > & operator-=(const Sizex< Type > &s)
Size -= Size operator.
Definition: size.h:88
Size(const Sizex< int > &s)
Definition: size.h:172
Sized(const Sizex< float > ©)
Definition: size.h:202
bool operator!=(const Sizex< Type > &s) const
Size != Size operator (deep compare).
Definition: size.h:160
Sizef(const Vec2< float > &s)
Definition: size.h:186
Size(const Vec2< int > &s)
Definition: size.h:173
Sizex(const Sizex< Type > &s)
Constructs a size structure.
Definition: size.h:67
Sizex< Type > operator-(const Sizex< Type > &s) const
Size - Size operator.
Definition: size.h:100
Sizex< Type > operator*(const Type &s) const
Size * operator.
Definition: size.h:142
Sized()
Definition: size.h:196
Sizef(const Sizex< int > ©)
Definition: size.h:188
Sized(const Sizex< double > &s)
Definition: size.h:198
Sized(const Vec2< double > &s)
Definition: size.h:199
2D (width,height) size structure - Float
Definition: size.h:180
Type height
Size height.
Definition: size.h:74
Size(int width, int height)
Definition: size.h:171
bool operator==(const Sizex< Type > &s) const
Size == Size operator (deep compare).
Definition: size.h:154
Sizex(Type width, Type height)
Constructs a size structure.
Definition: size.h:61
Size(const Sizex< double > ©)
Definition: size.h:176
Type width
Size width.
Definition: size.h:71
Sizex< Type > operator+(const Sizex< Type > &s) const
Size + Size operator.
Definition: size.h:94
Sized(const Sizex< int > ©)
Definition: size.h:201
Sizex< Type > & operator-=(const Type &s)
Size -= operator.
Definition: size.h:112
Sizex< Type > & operator+=(const Sizex< Type > &s)
Size += Size operator.
Definition: size.h:82
Sizef()
Definition: size.h:183
Sized(double width, double height)
Definition: size.h:197
Sizex< Type > operator+(const Type &s) const
Size + operator.
Definition: size.h:130
Size(const Sizex< float > ©)
Definition: size.h:175
Sizex< Type > & operator*=(const Type &s)
Size *= operator.
Definition: size.h:118
Definition: Application/application.h:35
Sizex< Type > & operator+=(const Type &s)
Size += operator.
Definition: size.h:106
4D vector
Definition: size.h:44
Sizef(const Sizex< double > ©)
Definition: size.h:189