Searched refs:sin_theta_over_two (Results 1 - 1 of 1) sorted by relevance

/external/libxcam/xcore/
H A Dvec_mat.h1067 T sin_theta_over_two = std::sin(theta_over_two); local
1069 return Quaternion<T>(axis * sin_theta_over_two, cos_theta_over_two);
1135 T sin_theta_over_two = (T) sqrt( 1.0 - cos_theta_over_two * cos_theta_over_two ); local
1136 if ( fabs( sin_theta_over_two ) < 0.0005 ) sin_theta_over_two = 1;
1137 rot_axis[0] = v[0] / sin_theta_over_two;
1138 rot_axis[1] = v[1] / sin_theta_over_two;
1139 rot_axis[2] = v[2] / sin_theta_over_two;

Completed in 59 milliseconds