plane.h

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

H
33
字号
#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 + =
减小字号Ctrl + -
显示快捷键?