/// <summary> /// Scales a rectangle using a floating point number. /// </summary> /// <param name="fraction">What to scale the rectangle by</param> /// <returns>New scaled rectangle.</returns> public FIntRect Scale(float fraction) { FVector2D min2D = new FVector2D(Min.X, Min.Y) * fraction; FVector2D max2D = new FVector2D(Max.X, Max.Y) * fraction; return(new FIntRect( FMath.FloorToInt(min2D.X), FMath.FloorToInt(min2D.Y), FMath.CeilToInt(max2D.X), FMath.CeilToInt(max2D.Y))); }