Lines Matching full:vector2d
21 class UI_EXPORT Vector2d {
23 Vector2d() : x_(0), y_(0) {}
24 Vector2d(int x, int y) : x_(x), y_(y) {}
36 void Add(const Vector2d& other);
38 void Subtract(const Vector2d& other);
40 void operator+=(const Vector2d& other) { Add(other); }
41 void operator-=(const Vector2d& other) { Subtract(other); }
43 void SetToMin(const Vector2d& other) {
48 void SetToMax(const Vector2d& other) {
69 inline bool operator==(const Vector2d& lhs, const Vector2d& rhs) {
73 inline Vector2d operator-(const Vector2d& v) {
74 return Vector2d(-v.x(), -v.y());
77 inline Vector2d operator+(const Vector2d& lhs, const Vector2d& rhs) {
78 Vector2d result = lhs;
83 inline Vector2d operator-(const Vector2d& lhs, const Vector2d& rhs) {
84 Vector2d result = lhs;