17#ifndef MIR_GEOMETRY_POINT_H_
18#define MIR_GEOMETRY_POINT_H_
51 template<
typename XType,
typename YType>
61 return lhs.
x == rhs.
x && lhs.
y == rhs.
y;
67 return lhs.
x != rhs.
x || lhs.
y != rhs.
y;
93 out << value.
x <<
", " << value.
y;
DeltaX< T > & operator-=(DeltaX< T > &lhs, DeltaX< T > rhs)
Definition dimensions.h:142
std::ostream & operator<<(std::ostream &out, Value< T, Tag > const &value)
Definition dimensions.h:118
constexpr bool operator==(Displacement< T > const &lhs, Displacement< T > const &rhs)
Definition displacement.h:75
constexpr DeltaX< T > operator+(DeltaX< T > lhs, DeltaX< T > rhs)
Definition dimensions.h:126
DeltaX< T > & operator+=(DeltaX< T > &lhs, DeltaX< T > rhs)
Definition dimensions.h:138
constexpr DeltaX< T > operator-(DeltaX< T > lhs, DeltaX< T > rhs)
Definition dimensions.h:130
constexpr bool operator!=(Displacement< T > const &lhs, Displacement< T > const &rhs)
Definition displacement.h:81
generic::Size< int > Size
Definition forward.h:82
generic::Displacement< int > Displacement
Definition forward.h:83
Definition splash_session.h:22
X< T > x
Definition point.h:54
constexpr Point(Point< U > const &other) noexcept
Definition point.h:45
Y< T > y
Definition point.h:55
Point & operator=(Point const &)=default
constexpr Point()=default
T ValueType
Definition point.h:38
constexpr Point(Point const &)=default
constexpr Point(XType &&x, YType &&y)
Definition point.h:52
Wraps a geometry value and prevents it from being accidentally used for invalid operations (such as s...
Definition dimensions.h:37