Lines Matching defs:Vector2d
22 class GFX_EXPORT Vector2d {
24 Vector2d() : x_(0), y_(0) {}
25 Vector2d(int x, int y) : x_(x), y_(y) {}
37 void Add(const Vector2d& other);
39 void Subtract(const Vector2d& other);
41 void operator+=(const Vector2d& other) { Add(other); }
42 void operator-=(const Vector2d& other) { Subtract(other); }
44 void SetToMin(const Vector2d& other) {
49 void SetToMax(const Vector2d& other) {
70 inline bool operator==(const Vector2d& lhs, const Vector2d& rhs) {
74 inline Vector2d operator-(const Vector2d& v) {
75 return Vector2d(-v.x(), -v.y());
78 inline Vector2d operator+(const Vector2d& lhs, const Vector2d& rhs) {
79 Vector2d result = lhs;
84 inline Vector2d operator-(const Vector2d& lhs, const Vector2d& rhs) {
85 Vector2d result = lhs;
93 void PrintTo(const Vector2d& vector, ::std::ostream* os);