26 v.
x = a.
y*b.
z - b.
y*a.
z;
27 v.
y = a.
z*b.
x - b.
z*a.
x;
28 v.
z = a.
x*b.
y - b.
x*a.
y;
48 float cosTheta = (float)cos( angle * M_PI/180.0 );
49 float sinTheta = (float)sin( angle * M_PI/180.0 );
52 nVec.
x= (cosTheta + (1 - cosTheta) * x * x) * oVec.
x;
53 nVec.
x += ((1 - cosTheta) * x * y - z * sinTheta) * oVec.
y;
54 nVec.
x += ((1 - cosTheta) * x * z + y * sinTheta) * oVec.
z;
57 nVec.
y= ((1 - cosTheta) * x * y + z * sinTheta) * oVec.
x;
58 nVec.
y += (cosTheta + (1 - cosTheta) * y * y) * oVec.
y;
59 nVec.
y += ((1 - cosTheta) * y * z - x * sinTheta) * oVec.
z;
62 nVec.
z= ((1 - cosTheta) * x * z - y * sinTheta) * oVec.
x;
63 nVec.
z += ((1 - cosTheta) * y * z + x * sinTheta) * oVec.
y;
64 nVec.
z += (cosTheta + (1 - cosTheta) * z * z) * oVec.
z;