PathfindingTest.Pathfinding.Node.GetDrawRectangle C# (CSharp) Method

GetDrawRectangle() public method

public GetDrawRectangle ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle
        public Rectangle GetDrawRectangle()
        {
            Game1 game = Game1.GetInstance();
            float drawX = this.x - (texture.Width / 2), drawY = this.y - (texture.Height / 2);
            return new Rectangle((int)(drawX - game.drawOffset.X), (int)(drawY - game.drawOffset.Y),
                this.texture.Width, this.texture.Height);
        }