memgraph/include/data_structures/kdtree/point.hpp
Marko Budiselic f9af76c364 data_structures moved from src/
Summary: data_structures moved from src/

Test Plan: manual

Reviewers: sale

Subscribers: buda, sale

Differential Revision: https://memgraph.phacility.com/D14
2016-12-03 23:28:07 +01:00

31 lines
552 B
C++

#pragma once
#include <ostream>
namespace kd {
template <class T>
class Point
{
public:
Point(T latitude, T longitude)
: latitude(latitude), longitude(longitude) {}
// latitude
// y
// ^
// |
// 0---> x longitude
T latitude;
T longitude;
/// nice stream formatting with the standard << operator
friend std::ostream& operator<< (std::ostream& stream, const Point& p) {
return stream << "(lat: " << p.latitude
<< ", lng: " << p.longitude << ')';
}
};
}