planarity.cc
1.47 KB
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
#include<vector>
#include<iostream>
#include<cmath>
#include<algorithm>
#include "planarity.hh"
#include "tetrahedron.hh"
double planarity(const std::vector<float>& p1, const std::vector<float>& p2, const std::vector<float>& p3, const std::vector<float>& p4) {
double elongation = 0.;
double planarity = 0.;
compute_tetrahedron_(p1, p2, p3, p4, elongation, planarity);
return planarity;
}
double planarity(const std::vector<double>& p1, const std::vector<double>& p2, const std::vector<double>& p3, const std::vector<double>& p4) {
double elongation = 0.;
double planarity = 0.;
compute_tetrahedron_(p1, p2, p3, p4, elongation, planarity);
return planarity;
}
double planarity(const std::vector<long double>& p1, const std::vector<long double>& p2, const std::vector<long double>& p3, const std::vector<long double>& p4) {
double elongation = 0.;
double planarity = 0.;
compute_tetrahedron_(p1, p2, p3, p4, elongation, planarity);
return planarity;
}
double planarity(const std::vector<int>& p1, const std::vector<int>& p2, const std::vector<int>& p3, const std::vector<int>& p4) {
double elongation = 0.;
double planarity = 0.;
compute_tetrahedron_(p1, p2, p3, p4, elongation, planarity);
return planarity;
}
double planarity(const std::vector<short>& p1, const std::vector<short>& p2, const std::vector<short>& p3, const std::vector<short>& p4) {
double elongation = 0.;
double planarity = 0.;
compute_tetrahedron_(p1, p2, p3, p4, elongation, planarity);
return planarity;
}