Microsoft.Xna.Framework.RectangleExtension.GetBottomCenter C# (CSharp) Method

GetBottomCenter() public static method

Gets the position of the center of the bottom edge of the rectangle.
public static GetBottomCenter ( this rect ) : Vector2
rect this
return Vector2
        public static Vector2 GetBottomCenter(this Rectangle rect)
        {
            return new Vector2(rect.X + rect.Width / 2.0f, rect.Bottom);
        }