-
Notifications
You must be signed in to change notification settings - Fork 0
/
Point.h
38 lines (29 loc) · 790 Bytes
/
Point.h
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
31
32
33
34
35
36
37
38
//
// Created by jlwoolf on 01/12/21.
//
#ifndef SIMULATEDANNEALING_POINT_H
#define SIMULATEDANNEALING_POINT_H
#include <cmath>
#include <fstream>
#include <iostream>
#include <list>
#include <numeric>
class Point {
int n;
int x, y, z;
public:
Point();
Point(Point const &p);
Point(int x, int y, int z, int n);
static int manhattanDistance(const Point& p1, const Point& p2);
bool operator== (const Point& p);
bool operator< (const Point& p);
bool operator> (const Point& p);
friend std::ostream &operator<<(std::ostream &os, const Point &p );
friend std::fstream &operator<<(std::fstream& fs, const Point& p);
int getN() const;
int getX() const;
int getY() const;
int getZ() const;
};
#endif //SIMULATEDANNEALING_POINT_H