using Microsoft.Xna.Framework;
using MonoGame.FourEngine.Components;

namespace MonoGame.FourEngine.Extensions
{
    public static class SpriteComponentExt
    {
        public static Point GetCenter(this SpriteComponent component)
            => new Point(
                component.Position.X + component.Width / 2,
                component.Position.Y + component.Height / 2);
    }
}