fixutil.h

来自「一个symbian 冒险游戏代码」· C头文件 代码 · 共 28 行

H
28
字号
#ifndef _FIXUTIL_H
#define _FIXUTIL_H


#include "FixVec2.h"


/** 
 * Fixed point math functions.
 */
class FixUtil
{
public:
	/**
	 * Returns true if point is on 'positive' side of line.
	 */
	static bool getPointLineSide( Fix x, Fix y, const FixVec2& a, const FixVec2& b );

	/**
	 * 2D line intersection test.
	 */
	static bool	testLineLineIntersection( const FixVec2& a0, const FixVec2& a1,
		const FixVec2& b0, const FixVec2& b1 );
};


#endif // _FIXUTIL_H

⌨️ 快捷键说明

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