19 #ifndef MIR_GEOMETRY_DISPLACEMENT_H_
20 #define MIR_GEOMETRY_DISPLACEMENT_H_
38 template<
typename DeltaXType,
typename DeltaYType>
52 return lhs.
dx == rhs.
dx && lhs.
dy == rhs.
dy;
57 return lhs.
dx != rhs.
dx || lhs.
dy != rhs.
dy;
60 std::ostream&
operator<<(std::ostream& out, Displacement
const& value);
All things Mir.
Definition: aging_buffer.h:24
DeltaY dy
Definition: displacement.h:47
X x
Definition: point.h:39
float as_float() const
Definition: dimensions.h:55
DeltaX dx
Definition: displacement.h:46
Y y
Definition: point.h:40
Displacement operator+(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:62
bool operator!=(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:55
bool operator==(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:50
Displacement(DeltaXType &&dx, DeltaYType &&dy)
Definition: displacement.h:39
Displacement operator-(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:67
std::ostream & operator<<(std::ostream &out, Displacement const &value)
Definition: ostream.cpp:29
Definition: displacement.h:32
Displacement & operator=(Displacement const &)=default
float length_squared() const
Definition: displacement.h:41
bool operator<(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:87
Displacement()
Definition: displacement.h:34