19 #ifndef MIR_GEOMETRY_POINT_H_
20 #define MIR_GEOMETRY_POINT_H_
36 template<
typename XType,
typename YType>
45 return lhs.
x == rhs.
x && lhs.
y == rhs.
y;
50 return lhs.
x != rhs.
x || lhs.
y != rhs.
y;
54 inline Point
operator+(Point lhs,
DeltaY rhs) {
return{lhs.x, lhs.y + rhs}; }
56 std::ostream&
operator<<(std::ostream& out, Point
const& value);
All things Mir.
Definition: buffer_stream.h:37
X x
Definition: point.h:39
Y y
Definition: point.h:40
bool operator!=(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:56
Point & operator=(Point const &)=default
bool operator==(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:51
Point(XType &&x, YType &&y)
Definition: point.h:37
detail::IntWrapper< detail::dy > DeltaY
Definition: dimensions.h:116
std::ostream & operator<<(std::ostream &out, Displacement const &value)
Definition: ostream.cpp:29
DeltaX operator+(DeltaX lhs, DeltaX rhs)
Definition: dimensions.h:119