Beispiel #1
0
boost::python::tuple Quaternion::toAxisAngleT()
{
  ngl::Vec3 axis;
  float angle;
  toAxisAngle( axis, angle );
  return boost::python::make_tuple(axis.openGL(),angle);
}
 /**
 * @brief convert
 * @param src
 * @return
 */
 void convertRepresentationTo(OrientationType repType)
 {
   if(repType == Euler) { toEulers(); }
   else if(repType == OrientationMatrix) { toOrientationMatrix(); }
   else if(repType == Quaternion) { toQuaternion(); }
   else if(repType == AxisAngle) { toAxisAngle(); }
   else if(repType == Rodrigues) { toRodrigues(); }
   else if(repType == Homochoric) { toHomochoric(); }
   else if(repType == Cubochoric) { toCubochoric(); }
 }