g4tools  5.4.0
mat3f
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_mat3f
5 #define tools_mat3f
6 
7 #include "mat3"
8 //#include "mathf"
9 
10 namespace tools {
11 
12 class mat3f : public mat3<float> {
13  typedef mat3<float> parent;
14 public:
15  mat3f(){}
16  mat3f(float a_00,float a_01,float a_02, //first row
17  float a_10,float a_11,float a_12, //second row
18  float a_20,float a_21,float a_22) //third row
19  :parent(a_00,a_01,a_02,
20  a_10,a_11,a_12,
21  a_20,a_21,a_22)
22  {}
23  virtual ~mat3f() {}
24 public:
25  mat3f(const mat3f& a_from):parent(a_from){}
26  mat3f& operator=(const mat3f& a_from){
27  parent::operator=(a_from);
28  return *this;
29  }
30 public:
31 /*
32  void set_rotate(const float& a_x,const float& a_y,const float& a_z,const float& a_angle) {
33  parent::set_rotate(a_x,a_y,a_z,a_angle,fsin,fcos);
34  }
35  void mul_rotate(const float& a_x,const float& a_y,const float& a_z,const float& a_angle) {
36  parent::mul_rotate(a_x,a_y,a_z,a_angle,fsin,fcos);
37  }
38  void left_mul_rotate(const float& a_x,const float& a_y,const float& a_z,const float& a_angle) {
39  parent::left_mul_rotate(a_x,a_y,a_z,a_angle,fsin,fcos);
40  }
41  bool get_rotate(float& a_x,float& a_y,float& a_z,float& a_angle) {
42  return parent::get_rotate(a_x,a_y,a_z,a_angle,facos,fsin,fsqrt); //warning : acos and not cos.
43  }
44  */
45 public: //operators
46 };
47 
48 }
49 
50 #endif
tools::mat3f::mat3f
mat3f(float a_00, float a_01, float a_02, float a_10, float a_11, float a_12, float a_20, float a_21, float a_22)
Definition: mat3f:16
tools::mat3< float >::operator=
mat3 & operator=(const mat3 &a_from)
Definition: mat3:27
tools::mat3f::~mat3f
virtual ~mat3f()
Definition: mat3f:23
tools::mat3f
Definition: mat3f:12
tools::mat3f::mat3f
mat3f(const mat3f &a_from)
Definition: mat3f:25
tools::mat3f::operator=
mat3f & operator=(const mat3f &a_from)
Definition: mat3f:26
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::mat3f::mat3f
mat3f()
Definition: mat3f:15
mat3
tools::mat3
Definition: mat3:14