Searched defs:BasePoint (Results 1 – 1 of 1) sorted by relevance
73445 struct BasePoint { struct73446 union {73454 constexpr BasePoint() : x(0), y(0) {} in BasePoint() argument73455 constexpr BasePoint(Coord aX, Coord aY) : x(aX), y(aY) {} in BasePoint() function73457 void MoveTo(T aX, T aY) { x = aX; y = aY; } in MoveTo()73458 void MoveBy(T aDx, T aDy) { x += aDx; y += aDy; } in MoveBy()73463 bool operator==(const Sub& aPoint) const { in operator ==()73466 bool operator!=(const Sub& aPoint) const { in operator !=()73470 Sub operator+(const Sub& aPoint) const { in operator +()73473 Sub operator-(const Sub& aPoint) const { in operator -()[all …]