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