quakeforge/tools/qfcc/test/old/quattest.r
Bill Currie 49ca09a64f Clean up qfcc's test directory.
I don't remember what half these tests were for :/
2012-11-22 21:58:52 +09:00

16 lines
206 B
R

void printf (string fmt, ...) = #0;
quaternion q;
vector v;
int
main ()
{
quaternion tq;
q = '0.6 0.48 0.64 0';
v = '1 2 3';
tq.s = 0;
tq.v = v;
printf ("%v %q\n", q * v, q * tq * ~q);
return 0;
}