| 1 |
//---------------------------------------------------------------------------
|
| 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 |
virtual double2 get_moment_dans_plan (double2 theta,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,vector<OT_VECTEUR_4DD>& ctrpts,int plan);
|
| 34 |
virtual vector<OT_VECTEUR_4DD> get_system_axes(vector<OT_VECTEUR_4DD>& ctrpts) ; |
| 35 |
virtual OT_MATRICE_3D get_system_axes(OT_VECTEUR_4DD& root,vector<OT_VECTEUR_4DD>& axes,vector<OT_VECTEUR_4DD>& ctrpts); |
| 36 |
virtual OT_VECTEUR_4DD get_plan_medien(vector<OT_VECTEUR_4DD>& ctrpts); |
| 37 |
private:
|
| 38 |
|
| 39 |
double2 get_max(double2 a,double2 b) ;
|
| 40 |
double2 get_min(double2 a,double2 b) ;
|
| 41 |
double2 get_signe(double2 a,double2 b);
|
| 42 |
void get_permutation(double2& a,double2& b) ; |
| 43 |
void get_shift(double2&a,double2&b,double2&c,double2 d);
|
| 44 |
double ordre;
|
| 45 |
};
|
| 46 |
|
| 47 |
#endif
|