~sfiorucci/ptools/test_seb

« back to all changes in this revision

Viewing changes to vissage.h

  • Committer: asaladin
  • Date: 2008-12-22 15:05:30 UTC
  • Revision ID: svn-v4:d4b151a5-ce23-0410-94d7-eeae68ba5c7e:ptools/branches/1.0rc:644
removed all references to 'QBestfit', translated Vissage to Screw, made some local functions static

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id$
2
 
#ifndef _VISSAGE_H_
3
 
#define _VISSAGE_H_
4
 
 
5
 
#include <stdio.h>
6
 
 
7
 
 
8
 
#include "basetypes.h"
9
 
#include "coord3d.h"
10
 
 
11
 
namespace PTools
12
 
{
13
 
 
14
 
// class Rigidbody;
15
 
 
16
 
typedef double Mat33[3][3];
17
 
 
18
 
struct Vissage
19
 
{
20
 
// private:
21
 
 
22
 
    PTools::Coord3D axetranslation; //vecteur unitaire directeur de l'axe de translation
23
 
    PTools::Coord3D point; //un point de l'axe de rotation
24
 
    dbl normtranslation; // scalar. t = normtranslation.axetranslation
25
 
    dbl angle;
26
 
// 
27
 
//     Matrix matrix;
28
 
//     dbl matrot[3][3];  // variable a conserver ? 
29
 
 
30
 
 
31
 
 
32
 
public:
33
 
    void Print() {
34
 
          std::cout << "------ <vissage> --------" << std::endl ;
35
 
            std::cout << "axe translation: " ; 
36
 
            std::cout << axetranslation.toString();
37
 
            std::cout << "angle: " << angle <<"  norme translation:" << normtranslation << std::endl ; 
38
 
            std::cout << "vecteur translation (recalc): " << (normtranslation*axetranslation).toString() << std::endl;
39
 
            std::cout << "point axe: " << point.toString();
40
 
//             std::cout << "matrice: " << std::endl;
41
 
//             matrix.Print();
42
 
// 
43
 
            std::cout << "####### </vissage> #######" << std::endl ; 
44
 
        } 
45
 
 
46
 
// friend Vissage superpose_sippl(const Rigidbody& ref, const Rigidbody& mob, int verbosity);
47
 
friend Vissage MatTrans2screw(const Matrix& mat);
48
 
};
49
 
 
50
 
 
51
 
}
52
 
 
53
 
#endif // _VISSAGE_H_
54