public static Vector2 getHalfSize( this Rectangle rect ) { return new Vector2( rect.Width * 0.5f, rect.Height * 0.5f ); }