blob: c6eecbb0d2ed9a22349450b83798012dd2deb1d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef DYNAMIC_DEPTH_INTERNAL_DYNAMIC_DEPTH_POINT_H_ // NOLINT
#define DYNAMIC_DEPTH_INTERNAL_DYNAMIC_DEPTH_POINT_H_ // NOLINT
namespace photos_editing_formats {
namespace dynamic_depth {
// A struct that contains the width and height of a size or the x and y
// coordinates of a point.
template <typename T>
struct Point {
Point(T x_coord, T y_coord) : x(x_coord), y(y_coord) {}
T x;
T y;
inline bool operator==(const Point& other) const {
return x == other.x && y == other.y;
}
inline bool operator!=(const Point& other) const { return !(*this == other); }
};
} // namespace dynamic_depth
} // namespace photos_editing_formats
#endif // DYNAMIC_DEPTH_INTERNAL_DYNAMIC_DEPTH_POINT_H_ // NOLINT
|