Urho3D
|
Two-dimensional vector with integer values. More...
#include <Vector2.h>
Public Member Functions | |
IntVector2 () | |
Construct undefined. | |
IntVector2 (int x, int y) | |
Construct from coordinates. | |
IntVector2 (const IntVector2 &rhs) | |
Copy-construct from another vector. | |
bool | operator== (const IntVector2 &rhs) const |
Test for equality with another vector. | |
bool | operator!= (const IntVector2 &rhs) const |
Test for inequality with another vector. | |
IntVector2 | operator+ (const IntVector2 &rhs) const |
Add a vector. | |
IntVector2 | operator- () const |
Return negation. | |
IntVector2 | operator- (const IntVector2 &rhs) const |
Subtract a vector. | |
IntVector2 | operator* (int rhs) const |
Multiply with a scalar. | |
IntVector2 | operator/ (int rhs) const |
Divide by a scalar. | |
IntVector2 & | operator+= (const IntVector2 &rhs) |
Add-assign a vector. | |
IntVector2 & | operator-= (const IntVector2 &rhs) |
Subtract-assign a vector. | |
IntVector2 & | operator*= (int rhs) |
Multiply-assign a scalar. | |
IntVector2 & | operator/= (int rhs) |
Divide-assign a scalar. | |
const int * | Data () const |
Return integer data. | |
String | ToString () const |
Return as string. |
Public Attributes | |
int | x_ |
X coordinate. | |
int | y_ |
Y coordinate. |
Static Public Attributes | |
static const IntVector2 | ZERO |
Zero vector. |
Two-dimensional vector with integer values.