-
Notifications
You must be signed in to change notification settings - Fork 0
/
Edge3D.hpp
53 lines (30 loc) · 831 Bytes
/
Edge3D.hpp
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Edge3D Class
// Damien MATTEI
#ifndef EDGE3D_HPP
#define EDGE3D_HPP
#include "Point3D.hpp"
using namespace std;
#include <iostream>
#include <math.h>
// export not yet implemented in g++
//export template<class T> class Edge3D;
//template<class T> class Edge3D;
template <class T> class Edge3D {
public:
Point3D<T> *a;
Point3D<T> *b;
Edge3D();
~Edge3D();
// create edge AB from point A and B
Edge3D(Point3D<T> & a,Point3D<T> & b);
//Edge3D(Point3D<T> & ref_a,Point3D<T> & ref_b);
Edge3D(const Edge3D<T> &);
Edge3D<T> & operator=(const Edge3D<T> &);
// equality operator
bool operator== (const Edge3D<T> &);
string display(void);
// // compute the norm
// T norm();
};
template <class T> ostream& operator<< (ostream &out, Edge3D<T> &e);
#endif /* EDGE3D_HPP */