Intersects() 공개 추상적인 메소드

public abstract Intersects ( CollisionElement collisionElement ) : bool
collisionElement CollisionElement
리턴 bool
예제 #1
0
        public override bool Intersects(CollisionElement collisionElement)
        {
            if (collisionElement is CollisionConvexPolygon)
                return Intersects(collisionElement as CollisionConvexPolygon);

            if (collisionElement is CollisionCircle)
                return Intersects(collisionElement as CollisionCircle);

            return collisionElement.Intersects(this);
        }
        public override bool Intersects(CollisionElement collisionElement)
        {
            if (collisionElement is CollisionConvexPolygon)
            {
                return(Intersects(collisionElement as CollisionConvexPolygon));
            }

            if (collisionElement is CollisionCircle)
            {
                return(Intersects(collisionElement as CollisionCircle));
            }

            return(collisionElement.Intersects(this));
        }
예제 #3
0
        public override bool Intersects(CollisionElement collisionElement)
        {
            var polygon = collisionElement as CollisionConvexPolygon;

            if (polygon != null)
            {
                return(Intersects(polygon));
            }

            var circle = collisionElement as CollisionCircle;

            if (circle != null)
            {
                return(Intersects(circle));
            }

            return(collisionElement.Intersects(this));
        }
        public override bool Intersects(CollisionElement collisionElement)
        {
            var polygon = collisionElement as CollisionConvexPolygon;
            if (polygon != null)
                return Intersects(polygon);

            var circle = collisionElement as CollisionCircle;
            if (circle != null)
                return Intersects(circle);

            return collisionElement.Intersects(this);
        }