Subversion Repositories gelsvn

Rev

Rev 195 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 195 Rev 306
Line 42... Line 42...
42
	
42
	
43
	// Create a 4 by 4 Matrix
43
	// Create a 4 by 4 Matrix
44
	Mat4x4f m = translation_Mat4x4f(Vec3f(1,2,3));
44
	Mat4x4f m = translation_Mat4x4f(Vec3f(1,2,3));
45
 
45
 
46
	// Multiply the quaternion rotation onto m.
46
	// Multiply the quaternion rotation onto m.
47
	m *= q.get_mat4x4f();
47
	m *= q.get_Mat4x4f();
48
 
48
 
49
	// Create a vector (1,1,1)
49
	// Create a vector (1,1,1)
50
	Vec3f p(1);
50
	Vec3f p(1);
51
 
51
 
52
	// Multiply p onto m as a point. That is we assign 1 to p's w coordinate
52
	// Multiply p onto m as a point. That is we assign 1 to p's w coordinate