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

📄 plane.h

📁 hl2 source code. Do not use it illegal.
💻 H
字号:
#ifndef HK_MATH_PLANE_H
#define HK_MATH_PLANE_H

//: XXX
class hk_Plane
{
	public:

		HK_DECLARE_NONVIRTUAL_CLASS_ALLOCATOR(HK_MEMORY_CLASS_CONSTRAINT, hk_Plane)

		inline hk_Plane();
			//: Empty default constructor.

		inline hk_Plane(const hk_Vector3& normal, hk_real distance);
			//: Initialize with plane normal and perpendicular distance to the origin.

		hk_Plane(const hk_Vector3& p0, const hk_Vector3& p1, const hk_Vector3& p2);
			//: Set to be plane defined by three non-colinear points in the plane.

		void set(const hk_Vector3& normal, hk_real distance);
			//: Initialize with plane normal and perpendicular distance to the origin.
			
		void set(const hk_Vector3& p0, const hk_Vector3& p1, const hk_Vector3& p2);		
			//: Set to be plane defined by three non-colinear points in the plane.

	private:
		
		hk_Vector4 m_plane;
};

#endif /* HK_MATH_PLANE_H */

⌨️ 快捷键说明

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