home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / graphicgems4.lha / GemsIV / arcball / BallMath.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-06  |  418 b   |  12 lines

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