13 #include <boost/math/constants/constants.hpp>
15 #include <CGAL/Simple_cartesian.h>
16 #include <CGAL/Polyhedron_3.h>
17 #include <CGAL/Bbox_3.h>
18 #include <CGAL/Timer.h>
21 typedef CGAL::Simple_cartesian<double>
K;
32 const static double pi = boost::math::constants::pi<double>();
40 double a = V.squared_length();
44 double c = W.squared_length() - r * r ;
45 double delta = b * b - a * c;
48 double t = (- b + 2 * std::sqrt(delta)) / (2 * a) ;
102 mxArray* field = mxGetField(MATLAB_struct, index, fieldname);
103 #pragma warning (push)
104 #pragma warning (disable: 4800)
106 *out =
static_cast<T
>(mxGetScalar(field));
107 #pragma warning (pop)
116 double l = v.squared_length();
117 return (l != 0.0) ? (v / std::sqrt(l)) : v;
130 return std::asin(sine);
double beta
Definition: Header.h:79
int nb_threads
Definition: Header.h:69
bool isRelative
Definition: Header.h:85
double Mpower
Definition: Header.h:83
bool isGeodesic
Definition: Header.h:73
double gamma
Definition: Header.h:81
Enriched CGAL Polyhedron for the MSDM estimation.
double alpha
Definition: Header.h:77
bool multithreading
Definition: Header.h:67
Structure that contains all the parameters of the MSDM estimation.
Definition: Header.h:64
bool display
Definition: Header.h:71
double radius
Definition: Header.h:75
Polyhedron class for the MSDM computation.
Definition: enriched_polyhedron.h:189