Home
last modified time | relevance | path

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

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