⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rotation.h

📁 hl2 source code. Do not use it illegal.
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -