personal_training_martial_arts.Core.Button.hit_button C# (CSharp) Method

hit_button() private method

private hit_button ( Rectangle button, int mx, int my ) : System.Boolean
button Microsoft.Xna.Framework.Rectangle
mx int
my int
return System.Boolean
        private Boolean hit_button(Rectangle button, int mx, int my)
        {
            return (mx >= button.X &&
                mx <= button.X + button.Width &&
                my >= button.Y &&
                my <= button.Y + button.Height);
        }