40 template<
typename Type>
43 template<
typename Type>
46 template<
typename Type>
53 template<
typename Type>
68 : width(width), height(height) { }
99 { width += s.
width; height += s.
height;
return *
this; }
103 { width -= s.
width; height -= s.
height;
return *
this; }
115 { width +=
s; height +=
s;
return *
this; }
119 { width -=
s; height -=
s;
return *
this; }
123 { width *=
s; height *=
s;
return *
this; }
127 { width /=
s; height /=
s;
return *
this; }
147 {
return (width == s.
width) && (height == s.
height); }
151 {
return (width != s.
width) || (height != s.
height); }
Size(const Sizex< float > ©)
Definition: size.h:164
Type width
Size width.
Definition: size.h:82
Sizex(Type width, Type height)
Constructs a size structure.
Definition: size.h:67
Sized(const Sizex< float > ©)
Definition: size.h:191
Sized(const Sizex< double > &s)
Definition: size.h:187
Sizex(const Sizex< Type > &s)
Constructs a size structure.
Definition: size.h:73
Sized(const Sizex< int > ©)
Definition: size.h:190
Sizex< Type > & operator-=(const Sizex< Type > &s)
Size -= Size operator.
Definition: size.h:102
Sizef(float width, float height)
Definition: size.h:173
Sizef(const Sizex< float > &s)
Definition: size.h:174
Type height
Size height.
Definition: size.h:85
Sizex< Type > operator+(const Sizex< Type > &s) const
Size + Size operator.
Definition: size.h:106
Sizef(const Sizex< double > ©)
Definition: size.h:178
Sized(double width, double height)
Definition: size.h:186
Sizex< Type > & operator*=(const Type &s)
Size *= operator.
Definition: size.h:122
Size(const Sizex< double > ©)
Definition: size.h:165
Sizef()
Definition: size.h:172
Size(const Sizex< int > &s)
Definition: size.h:161
bool operator!=(const Sizex< Type > &s) const
Size != Size operator (deep compare).
Definition: size.h:150
Sizex()
Constructs a size structure.
Definition: size.h:61
Sized(const Vec2< double > &s)
Definition: size.h:188
Size()
Definition: size.h:159
2D (width,height) size structure - Double
Definition: size.h:182
Sizex< Type > operator-(const Type &s) const
Size - operator.
Definition: size.h:134
2D vector
Definition: line.h:48
Sized()
Definition: size.h:185
Size(int width, int height)
Definition: size.h:160
Sizef(const Vec2< float > &s)
Definition: size.h:175
Sizex< Type > & operator+=(const Sizex< Type > &s)
Size += Size operator.
Definition: size.h:98
Sizex< Type > operator/(const Type &s) const
Size / operator.
Definition: size.h:142
Size(const Vec2< int > &s)
Definition: size.h:162
Sizef(const Sizex< int > ©)
Definition: size.h:177
Sizex< Type > operator*(const Type &s) const
Size * operator.
Definition: size.h:138
2D (width,height) size structure - Integer
Definition: size.h:156
Sizex< Type > operator+(const Type &s) const
Size + operator.
Definition: size.h:130
Sizex< Type > & operator-=(const Type &s)
Size -= operator.
Definition: size.h:118
4D vector
Definition: size.h:47
bool operator==(const Sizex< Type > &s) const
Size == Size operator (deep compare).
Definition: size.h:146
Sizex< Type > operator-(const Sizex< Type > &s) const
Size - Size operator.
Definition: size.h:110
Sizex< Type > & operator+=(const Type &s)
Size += operator.
Definition: size.h:114
2D (width,height) size structure.
Definition: size.h:54
2D (width,height) size structure - Float
Definition: size.h:169
Sizex< Type > & operator/=(const Type &s)
Size /= operator.
Definition: size.h:126