Subversion Repositories gelsvn

Rev

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

Rev 2 Rev 10
Line 1... Line 1...
1
#include<typeinfo>
1
#include <typeinfo>
-
 
2
#include <iostream>
2
 
3
 
3
#include "CGLA/Mat4x4f.h"
4
#include "CGLA/Mat4x4f.h"
4
#include "CGLA/Mat2x2f.h"
5
#include "CGLA/Mat2x2f.h"
5
 
6
 
6
#include "CGLA/Vec2f.h"
7
#include "CGLA/Vec2f.h"
Line 54... Line 55...
54
  Mat4x4f mpers  = perspective_Mat4x4f(image_plane_dist);
55
  Mat4x4f mpers  = perspective_Mat4x4f(image_plane_dist);
55
 
56
 
56
  // Concatenate the translation, viewing and projection matrices
57
  // Concatenate the translation, viewing and projection matrices
57
  Mat4x4f m = mpers * mview * mtrans;
58
  Mat4x4f m = mpers * mview * mtrans;
58
 
59
 
-
 
60
	std::cout << mview << mtrans << mpers << m << std::endl;
-
 
61
 
59
  //----------------------------------------
62
  //----------------------------------------
60
  // 3. Create points 
63
  // 3. Create points 
61
 
64
 
62
  Vec3Hf axes[3]={Vec3Hf(2,0,0),Vec3Hf(0,2,0),Vec3Hf(0,0,2)};
65
  Vec3Hf axes[3]={Vec3Hf(2,0,0),Vec3Hf(0,2,0),Vec3Hf(0,0,2)};
63
  Vec3Hf paxes[3];
66
  Vec3Hf paxes[3];