21#include <geos/geom/Coordinate.h>
42 KdNode(
double p_x,
double p_y,
void* p_data);
45 double getX() {
return p.
x; }
46 double getY() {
return p.
y; }
48 void* getData() {
return data; }
49 KdNode* getLeft() {
return left; }
50 KdNode* getRight() {
return right; }
51 void increment() { count++; }
52 std::size_t getCount() {
return count; }
53 bool isRepeated() {
return count > 1; }
54 void setLeft(
KdNode* p_left) { left = p_left; }
55 void setRight(
KdNode* p_right) { right = p_right; }
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
double y
y-coordinate
Definition: Coordinate.h:81
double x
x-coordinate
Definition: Coordinate.h:78
Basic namespace for all GEOS functionalities.
Definition: geos.h:39