ballmath.h

来自「[Game.Programming].Academic - Graphics G」· C头文件 代码 · 共 12 行

H
12
字号
/***** BallMath.h - Essential routines for Arcball.  *****/#ifndef _H_BallMath#define _H_BallMath#include "BallAux.h"HVect MouseOnSphere(HVect mouse, HVect ballCenter, double ballRadius);HVect ConstrainToAxis(HVect loose, HVect axis);int NearestConstraintAxis(HVect loose, HVect *axes, int nAxes);Quat Qt_FromBallPoints(HVect from, HVect to);void Qt_ToBallPoints(Quat q, HVect *arcFrom, HVect *arcTo);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?