Subversion Repositories gelsvn

Rev

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

Rev 131 Rev 136
Line 14... Line 14...
14
    
14
    
15
    QuatTrackBall::QuatTrackBall(const Vec3f& _centre, 
15
    QuatTrackBall::QuatTrackBall(const Vec3f& _centre, 
16
			 float _eye_dist,
16
			 float _eye_dist,
17
			 unsigned _width, 
17
			 unsigned _width, 
18
			 unsigned _height):
18
			 unsigned _height):
19
	centre(_centre), eye_dist(_eye_dist), scale(0.5*_eye_dist), 
19
	centre(_centre), width(_width), height(_height), 
20
	width(_width), height(_height)
20
	scale(0.5*_eye_dist), eye_dist(_eye_dist)
21
	{
21
	{
22
	// This size should really be based on the distance from the center of
22
	// This size should really be based on the distance from the center of
23
	// rotation to the point on the object underneath the mouse.  That
23
	// rotation to the point on the object underneath the mouse.  That
24
	// point would then track the mouse as closely as possible.  This is a
24
	// point would then track the mouse as closely as possible.  This is a
25
	// simple example, though, so that is left as an exercise.
25
	// simple example, though, so that is left as an exercise.