ray.h

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

H
29
字号
#ifndef HK_MATH_RAY_H
#define HK_MATH_RAY_H

#include <hk_math/vecmath.h>

class hk_Ray
{
    public:

		HK_DECLARE_NONVIRTUAL_CLASS_ALLOCATOR(HK_MEMORY_CLASS_CONSTRAINT, hk_Ray)

		inline hk_Ray() { }
		inline hk_Ray(const hk_Vector3& orig, const hk_Vector3 dir);

		inline void set_zero();
		inline void set(const hk_Vector3& o, const hk_Vector3& d);

		inline const hk_Vector3& get_origin() const { return m_origin; }
		inline const hk_Vector3& get_direction() const { return m_direction; }

    public:
		hk_Vector3 m_origin;
		hk_Vector3 m_direction;
};

#include <hk_math/ray.inl>

#endif /*HK_MATH_RAY_H*/

⌨️ 快捷键说明

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