Go to the documentation of this file.
19 #ifndef MIR_GEOMETRY_POINT_H_
20 #define MIR_GEOMETRY_POINT_H_
32 constexpr
Point() =
default;
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;
65 std::ostream&
operator<<(std::ostream& out, Point
const& value);
DeltaX & operator+=(DeltaX &lhs, DeltaX rhs)
Definition: dimensions.h:121
constexpr DeltaX operator-(DeltaX lhs, DeltaX rhs)
Definition: dimensions.h:119
constexpr Point(XType &&x, YType &&y)
Definition: point.h:37
constexpr Point()=default
X x
Definition: point.h:39
DeltaX & operator-=(DeltaX &lhs, DeltaX rhs)
Definition: dimensions.h:123
constexpr DeltaX operator+(DeltaX lhs, DeltaX rhs)
Definition: dimensions.h:117
constexpr bool operator==(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:52
Definition: splash_session.h:24
constexpr bool operator!=(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:57
Y y
Definition: point.h:40
std::ostream & operator<<(std::ostream &out, Displacement const &value)
Point & operator=(Point const &)=default
Copyright © 2012-2020
Canonical Ltd.
Generated on Tue Jul 28 09:29:59 UTC 2020
This documentation is licensed under the GPL version 2 or 3.