K3dMatrixWork.h

Go to the documentation of this file.
00001 
00012 /***************************************************************************
00013  *   Copyright (C) 2007 by Jan Koci   *
00014  *   honza.koci@email.cz   *
00015  *   http://kengine.sourceforge.net/tutorial/
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  *   This program is distributed in the hope that it will be useful,       *
00023  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00024  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00025  *   GNU General Public License for more details.                          *
00026  *                                                                         *
00027  *   You should have received a copy of the GNU General Public License     *
00028  *   along with this program; if not, write to the                         *
00029  *   Free Software Foundation, Inc.,                                       *
00030  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00031  ***************************************************************************/
00032 
00033 #pragma once
00034 
00035 #include "../GameData/K3dGameData.h"
00036 #include "../../MathCore/K3dMatrix.h"
00037 #include "K3dVector3Work.h"
00038 
00039 class K3dMatrixWork
00040 {
00041                 K3dGameData *m_pGameData;       
00042                 K3dMatrix m_kMatrix;            
00043                 K3dVector3Work *m_pVector3Work; 
00044         public:
00045                 K3dMatrixWork ( K3dGameData *_pGameData );
00046                 ~K3dMatrixWork ( void );
00047 
00048                 void RotationUpVector ( K3dMatrix &_rM, const K3dVector3Obj &_rV );
00049                 void RotationUpVectorGL ( K3dMatrix &_rM, const K3dVector3Obj &_rV );
00050                 void RotationForwardVector ( K3dMatrix &_rM, const K3dVector3Obj &_rV );
00051                 void RotationForwardVectorGL ( K3dMatrix &_rM, const K3dVector3Obj &_rV );
00052                 void RotationRightVector ( K3dMatrix &_rM, const K3dVector3Obj &_rV );
00053                 void RotationRightVectorGL ( K3dMatrix &_rM, const K3dVector3Obj &_rV );
00054                 void RotationArbitraryVector ( K3dMatrix &_rM, const K3dVector3Obj &_rkVector,const  K3dVector3Obj &_rkArbitrary );
00055                 void RotationArbitraryVectorGL ( K3dMatrix &_rM, const K3dVector3Obj &_rkVector,const  K3dVector3Obj &_rkArbitrary );
00056 };

Generated on Thu Aug 16 23:53:28 2007 for K3dEngine by  doxygen 1.5.0