Subversion Repositories gelsvn

Rev

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

Rev 89 Rev 358
Line 24... Line 24...
24
 
24
 
25
		/// Construct a matrix from a single scalar value.
25
		/// Construct a matrix from a single scalar value.
26
		explicit Mat3x3d(float a): ArithSqMat3x3Float<Vec3d, Mat3x3d>(a) {}
26
		explicit Mat3x3d(float a): ArithSqMat3x3Float<Vec3d, Mat3x3d>(a) {}
27
 
27
 
28
	};
28
	};
-
 
29
 
-
 
30
  /// Create a rotation _matrix. Rotates about one of the major axes.
-
 
31
  Mat3x3d rotation_Mat3x3d(CGLA::Axis axis, double angle);
-
 
32
 
-
 
33
  /// Create a scaling matrix.
-
 
34
  Mat3x3d scaling_Mat3x3d(const Vec3d&);
-
 
35
 
-
 
36
 
29
	/// Create an identity matrix.
37
	/// Create an identity matrix.
30
	inline Mat3x3d identity_Mat3x3d()
38
	inline Mat3x3d identity_Mat3x3d()
31
	{
39
	{
32
		return Mat3x3d(Vec3d(1,0,0), Vec3d(0,1,0), Vec3d(0,0,1));
40
		return Mat3x3d(Vec3d(1,0,0), Vec3d(0,1,0), Vec3d(0,0,1));
33
	}
41
	}