30 #ifndef _CEGUIVector_h_
31 #define _CEGUIVector_h_
33 #include "CEGUIBase.h"
34 #include "CEGUISize.h"
49 Vector2(
float x,
float y) : d_x(x), d_y(y) {}
86 return Vector2(d_x + vec.d_x, d_y + vec.d_y);
91 return Vector2(d_x - vec.d_x, d_y - vec.d_y);
96 return Vector2(d_x * vec.d_x, d_y * vec.d_y);
99 Vector2 operator*(
float c)
const
101 return Vector2(d_x * c, d_y * c);
106 return ((d_x == vec.d_x) && (d_y == vec.d_y));
114 Size asSize()
const {
return Size(d_x, d_y); }
134 Vector3(
float x,
float y,
float z) : d_x(x), d_y(y), d_z(z) {}
139 return ((d_x == vec.d_x) && (d_y == vec.d_y) && (d_z == vec.d_z));
147 Vector3 operator*(
float c)
const
149 return Vector3(d_x * c, d_y * c, d_z * c);
154 return Vector3(d_x + v.d_x, d_y + v.d_y, d_z + v.d_z);
163 #endif // end of guard _CEGUIVector_h_