Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Search  

/home/mrm/Simex/simulations/hr_bike/pv_matrix.h

Go to the documentation of this file.
00001 #ifndef Pv_Matrix_Included
00002 #define Pv_Matrix_Included
00003 
00004 #include <iostream>
00005 
00006 #include "pv_point.h"
00007 
00008 class Pv_Matrix{
00009   double m[4][4];
00010  public:
00011   /*constructors*/
00012   Pv_Matrix();/*matrix initialized with 0*/
00013   Pv_Matrix(double value); /*matrix initialized with value*/
00014   Pv_Matrix(double i1,double i2,double i3,
00015             double j1,double j2,double j3,
00016             double k1,double k2,double k3); /*completed like rotation matrix*/
00017   Pv_Matrix(Pv_Point position,Pv_Point direction); /*direction of flight
00018                                                     *point + vector
00019                                                     *y axis is used*/
00020   Pv_Matrix(Pv_Point p1,Pv_Point p2,Pv_Point p3);/*direction of flight
00021                                                   *3 points
00022                                                   *position p1
00023                                                   *direction p1->p2
00024                                                   *orientation p1->p3*/ 
00025   
00026   /*destructor*/
00027 
00028   /*reset*/
00029 
00030   /*equals*/
00031 
00032   /*set*/
00033 
00034   /*get*/
00035   Pv_Point get_eye();
00036   Pv_Point get_center();
00037   Pv_Point get_up();
00038 
00039   /*display*/
00040   void draw();/*blue eyes, green hair*/
00041 
00042   /*operators*/
00043   Pv_Matrix operator* (Pv_Matrix m);
00044   Pv_Point operator* (Pv_Point p);
00045 
00046   /*friends*/
00047   friend std::ostream& operator<< (std::ostream& s,const Pv_Matrix& z);
00048   friend class Pv_Matrix_Id;
00049   friend class Pv_Matrix_Tr;
00050   friend class Pv_Matrix_Ro;
00051   friend class Pv_Matrix_Sc;
00052 
00053   /*miscellaneous*/
00054 
00055 };
00056 
00057 std::ostream& operator<< (std::ostream& s,const Pv_Matrix& z);
00058 
00059 #endif

Generated on Sat Jul 19 04:01:22 2003 for SIMEX by doxygen1.2.18