BallMath.h 422 B

12345678910111213
  1. /***** BallMath.h - Essential routines for Arcball. *****/
  2. #ifndef _H_BallMath
  3. #define _H_BallMath
  4. #include "BallAux.h"
  5. HVect MouseOnSphere(HVect mouse, HVect ballCenter, double ballRadius);
  6. HVect ConstrainToAxis(HVect loose, HVect axis);
  7. int NearestConstraintAxis(HVect loose, HVect * axes, int nAxes);
  8. Quat Qt_FromBallPoints(HVect from, HVect to);
  9. void Qt_ToBallPoints(Quat q, HVect * arcFrom, HVect * arcTo);
  10. #endif