コード例 #1
0
ファイル: AABB2D.cpp プロジェクト: Sethix/GameEngine
	bool	iTest		(const AABB2D &ac, const Plane2D &bc)
	{
		return dot(bc.normal, (ac.pos() - bc.position)) <= 
				  (ac.dim().x / 2) * dot(bc.normal, Vector2{ 1,0 }) 
				+ (ac.dim().y / 2) * dot(bc.normal, Vector2{ 0,1 });
	}