Lines Matching refs:Vector2d
23 class GFX_EXPORT Vector2d {
25 constexpr Vector2d() : x_(0), y_(0) {} in Vector2d() function
26 constexpr Vector2d(int x, int y) : x_(x), y_(y) {} in Vector2d() function
38 void Add(const Vector2d& other);
40 void Subtract(const Vector2d& other);
42 constexpr bool operator==(const Vector2d& other) const {
45 void operator+=(const Vector2d& other) { Add(other); }
46 void operator-=(const Vector2d& other) { Subtract(other); }
48 void SetToMin(const Vector2d& other) { in SetToMin()
53 void SetToMax(const Vector2d& other) { in SetToMax()
76 inline constexpr Vector2d operator-(const Vector2d& v) {
77 return Vector2d(-v.x(), -v.y());
80 inline Vector2d operator+(const Vector2d& lhs, const Vector2d& rhs) {
81 Vector2d result = lhs;
86 inline Vector2d operator-(const Vector2d& lhs, const Vector2d& rhs) {
87 Vector2d result = lhs;
95 void PrintTo(const Vector2d& vector, ::std::ostream* os);