-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.hpp
More file actions
30 lines (27 loc) · 768 Bytes
/
Copy pathNode.hpp
File metadata and controls
30 lines (27 loc) · 768 Bytes
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
26
27
28
29
30
#include <iostream>
#include <string>
#include <cmath>
#include <limits>
class Node {
private:
int size_m;
double x0;
double y0;
double x1;
double y1;
Node** child_node;
int coordinates_counter;
double** coordinates;
public:
//Constructors:
Node( int m, double x0, double y0, double x1, double y1 );
//Destructor:
~Node();
//Member functions:
bool insert( double x , double y );
bool search( double x , double y , double d );
void range( double xr0 , double yr0 , double xr1 , double yr1 , bool& found );
void nearest( double x , double y );
double* find_nearest( double x , double y );
int num();
};