GetBottom() 공개 메소드

public GetBottom ( ) : float
리턴 float
예제 #1
0
파일: Collider.cs 프로젝트: Gnoll/XNAPunk
        private static bool CollideRectRect(RectangleCollider a, RectangleCollider b)
        {
            if (a.GetBottom() < b.GetTop())
                return false;

            if (a.GetTop() > b.GetBottom())
                return false;

            if (a.GetRight() < b.GetLeft())
                return false;

            if (a.GetLeft() > b.GetRight())
                return false;

            return true;
        }