Subversion Repositories gelsvn

Rev

Rev 12 | Rev 89 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12 Rev 57
Line 19... Line 19...
19
		Mat2x3d(const Vec3d& _a, const Vec3d& _b): 
19
		Mat2x3d(const Vec3d& _a, const Vec3d& _b): 
20
			ArithMatFloat<Vec2d, Vec3d, Mat2x3d, 2> (_a,_b) {}
20
			ArithMatFloat<Vec2d, Vec3d, Mat2x3d, 2> (_a,_b) {}
21
 
21
 
22
		/// Construct 0 matrix.
22
		/// Construct 0 matrix.
23
		Mat2x3d() {}
23
		Mat2x3d() {}
24
 
-
 
25
		/// Construct matrix from array of values.
-
 
26
		Mat2x3d(const double* sa): ArithMatFloat<Vec2d, Vec3d, Mat2x3d, 2> (sa) {}
-
 
27
	};
24
	};
28
 
25
 
29
	/**  3x2 float matrix class.
26
	/**  3x2 float matrix class.
30
			 This class is useful for going from plane to 3D coordinates.
27
			 This class is useful for going from plane to 3D coordinates.
31
	*/
28
	*/
32
	class Mat3x2f: public ArithMatFloat<Vec3d, Vec2d, Mat3x2f, 3>
29
	class Mat3x2d: public ArithMatFloat<Vec3d, Vec2d, Mat3x2d, 3>
33
	{
30
	{
34
 
31
 
35
	public:
32
	public:
36
 
33
 
37
		/** Construct matrix from three Vec2d vectors which become the 
34
		/** Construct matrix from three Vec2d vectors which become the 
38
				rows of the matrix. */
35
				rows of the matrix. */
39
		Mat3x2f(const Vec2d& _a, const Vec2d& _b, const Vec2d& _c): 
36
		Mat3x2d(const Vec2d& _a, const Vec2d& _b, const Vec2d& _c): 
40
			ArithMatFloat<Vec3d, Vec2d, Mat3x2f, 3> (_a,_b,_c) {}
37
			ArithMatFloat<Vec3d, Vec2d, Mat3x2d, 3> (_a,_b,_c) {}
41
 
38
 
42
		/// Construct 0 matrix.
39
		/// Construct 0 matrix.
43
		Mat3x2f() {}
40
		Mat3x2d() {}
44
 
-
 
45
		/// Construct matrix from array of values.
-
 
46
		Mat3x2f(const double* sa): ArithMatFloat<Vec3d, Vec2d, Mat3x2f, 3> (sa) {}
-
 
47
 
41
 
48
	};
42
	};
49
 
43
 
50
 
44
 
51
}
45
}