19 #ifndef MIR_GEOMETRY_DISPLACEMENT_H_ 20 #define MIR_GEOMETRY_DISPLACEMENT_H_ 38 template<
typename DeltaXType,
typename DeltaYType>
53 return lhs.
dx == rhs.
dx && lhs.
dy == rhs.
dy;
58 return lhs.
dx != rhs.
dx || lhs.
dy != rhs.
dy;
98 template<
typename Scalar>
104 template<
typename Scalar>
110 #ifdef MIR_GEOMETRY_SIZE_H_
Definition: as_render_target.h:27
DeltaY dy
Definition: displacement.h:48
X x
Definition: point.h:39
DeltaX dx
Definition: displacement.h:47
constexpr DeltaX operator-(DeltaX lhs, DeltaX rhs)
Definition: dimensions.h:119
Y y
Definition: point.h:40
long long length_squared() const
Definition: displacement.h:41
constexpr Displacement(DeltaXType &&dx, DeltaYType &&dy)
Definition: displacement.h:39
constexpr int as_int() const
Definition: dimensions.h:53
constexpr DeltaX operator+(DeltaX lhs, DeltaX rhs)
Definition: dimensions.h:117
constexpr Width operator*(Scalar scale, Width const &w)
Definition: dimensions.h:148
Definition: displacement.h:32
Displacement & operator=(Displacement const &)=default
Height height
Definition: size.h:40
constexpr Displacement()
Definition: displacement.h:34
std::ostream & operator<<(std::ostream &out, Displacement const &value)
Width width
Definition: size.h:39
bool operator<(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:93
constexpr bool operator==(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:51
constexpr bool operator!=(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:56