~christopher-hunt08/maus/maus_analysis_devel

« back to all changes in this revision

Viewing changes to src/utilities/event-viewer/RotationMatrix.h

  • Committer: Christopher Hunt
  • Date: 2018-04-05 10:33:21 UTC
  • mfrom: (697.23.8 merge3)
  • Revision ID: christopher.hunt08@imperial.ac.uk-20180405103321-3q8yf42av2jrqw6o
Merged Trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef ROTATIONMATRIX_H
 
2
#define ROTATIONMATRIX_H
 
3
 
 
4
#include <iostream>
 
5
#include <vector>
 
6
 
 
7
#define PI 3.14159265
 
8
 
 
9
class RotationMatrix {
 
10
 public:
 
11
  enum eAxis {X = 1, Y = 2, Z = 3};
 
12
  static const unsigned int DIM = 3;
 
13
  typedef double matrix[DIM][DIM];
 
14
  
 
15
  RotationMatrix();//add setter to fill this
 
16
  RotationMatrix(double angle, eAxis axis);
 
17
  RotationMatrix(std::vector<double> elements);
 
18
  
 
19
  void PrintMatrix();
 
20
  void Transpose();
 
21
  
 
22
  RotationMatrix operator*(const RotationMatrix& m);
 
23
  std::vector<double> operator*(const std::vector<double>& v);
 
24
  
 
25
 private:
 
26
   matrix mat;
 
27
};
 
28
 
 
29
#endif // ROTATIONMATRIX_H