rotation.h

来自「hl2 source code. Do not use it illegal.」· C头文件 代码 · 共 28 行

H
28
字号
#ifndef HK_ROTATION_H
#define HK_ROTATION_H

#ifndef HK_MATH_VECMATH_H
#error Include <hk_math/vecmath.h> Do not include this file directly.
#endif // HK_MATH_VECMATH_H

//: An orthonormal 3x3 matrix
class hk_Rotation : public hk_Matrix3
{
	public:		
		inline hk_Rotation() { }
			//: Empty constructor.
		inline ~hk_Rotation() { }
			//: Empty deconstructor.

		inline hk_Rotation(const hk_Quaternion& q);
			//: Initialize from a normalized quaternion.

		void set(const hk_Quaternion& q);
			//: Set from a normalized quaternion.

		void set_axis_angle(const hk_Vector3& axis, hk_real angle);
			//: Set rotation to be 'angle' radians about the vector 'axis'
};

#endif // HK_ROTATION_H

⌨️ 快捷键说明

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