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

C:/temp/src/j2k/Deprecated/old_18mar_diff/Vector/Matrix22.hpp

Go to the documentation of this file.
00001 /*
00002 Definition for a 2 by 2 matrix:
00003 e.g.  |1 2|
00004       |3 4|
00005 */
00006 
00007 #ifndef __J2K__Matrix22_HPP__
00008 #define __J2K__Matrix22_HPP__
00009 
00010 #include <math.h>
00011 #include <j2k/Fred/Basic.hpp>
00012 #include <j2k/Fred/StdTypes.hpp>
00013 #include <j2k/Fred/Games/Vector2.hpp>
00014 
00015 class JMatrix22 {
00016 public:
00017 
00018    inline JMatrix22();
00019    inline virtual ~JMatrix22();
00020    inline JMatrix22( const Matrix22& src );
00021 
00022    inline void clear();
00023    inline void print();
00024    inline void identity();
00025 
00026    JMatrix22  rotz(double rad);
00027    JMatrix22  mult(const JMatrix22& mat);
00028    JVector2   mult(const Vector2& v);
00029 
00030 // protected:
00031 
00032    double m[4];
00033 };
00034 
00035 #endif

Generated on Sun Oct 14 18:46:14 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001