Subversion Repositories gelsvn

Rev

Rev 89 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 bj 1
#ifndef __CGLA_MAT2X2F_H
2
#define __CGLA_MAT2X2F_H
3
 
4
#include "Vec2f.h"
5
#include "ArithSqMat2x2Float.h"
6
 
7
 
8
namespace CGLA {
9
 
10
	/** Two by two float matrix. This class is useful for various 
11
			vector transformations in the plane. */
12
	class Mat2x2f: public ArithSqMat2x2Float<Vec2f, Mat2x2f>
13
	{
14
	public:
15
 
16
		/// Construct a Mat2x2f from two Vec2f vectors.
17
		Mat2x2f(Vec2f _a, Vec2f _b): ArithSqMat2x2Float<Vec2f, Mat2x2f> (_a,_b) {}
18
 
19
		/// Construct a Mat2x2f from four scalars.
20
		Mat2x2f(float _a, float _b, float _c, float _d): 
21
			ArithSqMat2x2Float<Vec2f, Mat2x2f>(Vec2f(_a,_b),Vec2f(_c,_d)) {}
22
 
23
		/// Construct the 0 matrix
24
		Mat2x2f() {}
25
 
26
	};
27
 
28
}
29
#endif