Backproject
util.h
1 
2 #include <chrono>
3 #include <thread>
4 #ifndef BACKPROJECT_UTIL_H
5 #define BACKPROJECT_UTIL_H
6 
7 #ifdef __cplusplus__
8 #include <cstdlib>
9 #else
10 
11 #include <stdlib.h>
12 
13 #endif
14 
15 #include <vector>
16 #include <array>
17 #include <iostream>
18 #include <iomanip>
19 
23 struct Point
24 {
28  double x;
32  double y;
33 
39  Point(double x, double y);
44  Point();
45 
46 
47 };
48 
49 
55 template<class T>
56 T ReadAndValidate();
57 
58 
59 #include "util.hpp"
60 
64 void clearScreen();
65 
70 void sleep(double seconds);
71 
75 void PressEnterToContinue();
79 void PressEnterToContinue(std::ostream &os,std::istream &is);
80 
81 #endif //BACKPROJECT_UTIL_H
double y
the y ordinate of the point.
Definition: util.h:32
double x
the x ordinate of the point
Definition: util.h:28
Point()
the default constructor, necessary since a non-default constructor has been specified; the compiler w...
Definition: util.cpp:16
Represents a 2 dimensional coordinate in an as yet unspecified unit (e.g.
Definition: util.h:23