18 const double sth = sin(q);
19 const double vth = 1.0 - cos(q);
25 const double axx = ax*ax*vth;
26 const double ayy = ay*ay*vth;
27 const double azz = az*az*vth;
28 const double axy = ax*ay*vth;
29 const double ayz = ay*az*vth;
30 const double azx = az*ax*vth;
37 1.0 - azz - ayy, -az + axy, ay + azx, 0.0,
38 az + axy, 1.0 - azz - axx, -ax + ayz, 0.0,
39 -ay + azx, ax + ayz, 1.0 - ayy - axx, 0.0,
65 s[0] * SR(0,0), s[0] * SR(1,0), s[0] * SR(2,0), 0.0,
66 s[1] * SR(0,1), s[1] * SR(1,1), s[1] * SR(2,1), 0.0,
67 s[2] * SR(0,2), s[2] * SR(1,2), s[2] * SR(2,2), 0.0,
70 const Vector4 c(center[0], center[1], center[2], 1.0);
77 for(
int i=0;
i < 3; ++
i){
81 for(
int i=0;
i < 3; ++
i){
HRP_UTIL_EXPORT void calcTransformMatrix(VrmlTransform *transform, Matrix44 &out_T)
boost::array< SFFloat, 3 > SFVec3f
HRP_UTIL_EXPORT void calcRodrigues(Matrix33 &out_R, const Vector3 &axis, double q)