Subversion Repositories gelsvn

Rev

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

Rev 107 Rev 193
Line 10... Line 10...
10
 
10
 
11
 
11
 
12
float frand() { return static_cast<float>(rand())/RAND_MAX - 0.5f;}
12
float frand() { return static_cast<float>(rand())/RAND_MAX - 0.5f;}
13
 
13
 
14
/* This is a non-exhaustive test program for CGLA */
14
/* This is a non-exhaustive test program for CGLA */
15
main()
15
int main()
16
{
16
{
17
    Vec3f norm(1,0,0);
17
    Vec3f norm(1,0,0);
18
    norm.normalize();
18
    norm.normalize();
19
    
19
    
20
    Vec3f a,b;
20
    Vec3f a,b;
Line 46... Line 46...
46
    
46
    
47
    cout << "Dot products " 
47
    cout << "Dot products " 
48
	<< dot(Q[0], Q[1]) << " "
48
	<< dot(Q[0], Q[1]) << " "
49
	<< dot(Q[0], Q[2]) << " " 
49
	<< dot(Q[0], Q[2]) << " " 
50
	<< dot(Q[1], Q[2]) << endl;
50
	<< dot(Q[1], Q[2]) << endl;
-
 
51
 
-
 
52
	return 0;
51
}
53
}