コード例 #1
0
        public override bool CollidesWith(/* final */ IShape pOtherShape)
        {
            if (pOtherShape is RectangularShape)
            {
                /* final */
                RectangularShape pOtherRectangularShape = (RectangularShape)pOtherShape;

                return(RectangularShapeCollisionChecker.CheckCollision(this, pOtherRectangularShape));
            }
            else
            {
                return(false);
            }
        }
コード例 #2
0
 public override bool Contains(/* final */ float pX, /* final */ float pY)
 {
     return(RectangularShapeCollisionChecker.CheckContains(this, pX, pY));
 }