-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathD6.h
executable file
·52 lines (40 loc) · 1.2 KB
/
D6.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef D6_H
#define D6_H
#include "VecN.h"
class LRL_Cell;
class D7;
class DeloneTetrahedron;
class G6;
#include "VecN.h"
#include <ostream>
#include <string>
class D6 : public VecN
{
public:
friend std::ostream& operator<< (std::ostream&, const D6&);
friend class D7;
D6(void);
explicit D6(const G6& v6);
explicit D6(const double v[6]);
explicit D6(const D6& d6);
D6(const LRL_Cell& c);
D6(const VecN& v);
explicit D6(const D7& v7);
explicit D6(const DeloneTetrahedron& del);
D6(const std::string& s);
D6(const std::vector<double>& v);
~D6(void) {}
D6& operator= (const D6& v);
D6& operator=(const std::string& s);
//D6 operator- (const D6& ds) const;
//D6 operator+ (const D6& ds) const;
//D6 operator* (const double& d) const;
static double DistanceBetween(const D6& v1, const D6& v2);
//double norm(const D6& ds) const;
//double norm(void) const;
//double Norm(const D6& ds) const { return norm(ds); }
//double Norm(void) const { return (*this).norm(); }
double operator[](const size_t n) const { return m_vec[n]; }
double& operator[](const size_t n) { return m_vec[n]; }
};
#endif