ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/oopse-1.0/libmdtools/Euler3.hpp
Revision: 1447
Committed: Fri Jul 30 21:01:35 2004 UTC (19 years, 11 months ago) by gezelter
File size: 669 byte(s)
Log Message:
Initial import of OOPSE sources into cvs tree

File Contents

# User Rev Content
1 gezelter 1447 #ifndef _EULER3_H_
2     #define _EULER3_H_
3    
4     class Quaternion;
5     class Mat3x3d;
6     class Vector3d;
7    
8     class Euler3{
9     public:
10     Euler3(){
11     phi = 0;
12     theta = 0;
13     psi = 0;
14     }
15     Euler3( double phi, double theta, double psi){
16     this->phi = phi;
17     this->theta = theta;
18     this->psi = psi;
19     }
20    
21     Euler3(double e[3]){
22     phi = e[0];
23     theta = e[1];
24     psi = e[2];
25     }
26    
27     Euler3(const Vector3d& v);
28    
29     Euler3(Mat3x3d& m);
30    
31     Euler3(Quaternion& q);
32    
33     public:
34     union{
35     struct{
36     double phi;
37     double theta;
38     double psi;
39     };
40     double angle[3];
41     };
42     };
43    
44     #endif //endif idndef _EULER3_H_