1 |
francois |
283 |
//--------------------------------------------------------------------------- |
2 |
|
|
|
3 |
|
|
#ifndef ot_fonctionsH |
4 |
|
|
#define ot_fonctionsH |
5 |
|
|
//--------------------------------------------------------------------------- |
6 |
|
|
|
7 |
|
|
#ifdef WINDOWS_VERSION |
8 |
|
|
#ifdef BUILT_DLL_OUTIL |
9 |
|
|
#define DLLPORTOUTIL __declspec(dllexport) |
10 |
|
|
#else |
11 |
|
|
#define DLLPORTOUTIL __declspec(dllimport) |
12 |
|
|
#endif |
13 |
|
|
#else |
14 |
|
|
#define DLLPORTOUTIL |
15 |
|
|
#endif |
16 |
|
|
|
17 |
|
|
#include <math.h> |
18 |
|
|
#include "ot_doubleprecision.h" |
19 |
|
|
#include "ot_mathematique.h" |
20 |
|
|
|
21 |
|
|
#include "ot_algorithme_geometrique.h" |
22 |
|
|
|
23 |
|
|
|
24 |
|
|
#define PI 3.1415926535897932384626433832795 |
25 |
|
|
|
26 |
|
|
|
27 |
|
|
class DLLPORTOUTIL VCT_OUTILS |
28 |
|
|
{ |
29 |
|
|
public: |
30 |
|
|
VCT_OUTILS(double ord); |
31 |
|
|
virtual ~ VCT_OUTILS() {}; |
32 |
couturad |
951 |
virtual double2 get_moment_dans_plan (double2 theta,std::vector<OT_VECTEUR_4DD>& ctrpts,int plan); |
33 |
|
|
virtual void get_minimum_de_Brak(double2 &ax,double2 &bx,double2 &cx,double2 &fa,double2 &fb,double2 &fc,std::vector<OT_VECTEUR_4DD>& ctrpts,int plan); |
34 |
|
|
virtual std::vector<OT_VECTEUR_4DD> get_system_axes(std::vector<OT_VECTEUR_4DD>& ctrpts) ; |
35 |
|
|
|
36 |
|
|
virtual OT_MATRICE_3D get_system_axes(OT_VECTEUR_4DD& root,std::vector<OT_VECTEUR_4DD>& axes,std::vector<OT_VECTEUR_4DD>& ctrpts); |
37 |
|
|
virtual OT_VECTEUR_4DD get_plan_medien(std::vector<OT_VECTEUR_4DD>& ctrpts); |
38 |
francois |
283 |
private: |
39 |
|
|
|
40 |
|
|
double2 get_max(double2 a,double2 b) ; |
41 |
|
|
double2 get_min(double2 a,double2 b) ; |
42 |
|
|
double2 get_signe(double2 a,double2 b); |
43 |
|
|
void get_permutation(double2& a,double2& b) ; |
44 |
|
|
void get_shift(double2&a,double2&b,double2&c,double2 d); |
45 |
|
|
double ordre; |
46 |
|
|
}; |
47 |
|
|
|
48 |
|
|
#endif |