Пример #1
0
 /// <summary>
 /// Divide an int point and round up the result.
 /// </summary>
 /// <param name="lhs">The int point being divided.</param>
 /// <param name="divisor">What to divide the int point by.</param>
 /// <returns>A new divided int point.</returns>
 public static FIntVector DivideAndRoundUp(FIntVector lhs, int divisor)
 {
     return(new FIntVector(
                FMath.DivideAndRoundUp(lhs.X, divisor),
                FMath.DivideAndRoundUp(lhs.Y, divisor),
                FMath.DivideAndRoundUp(lhs.Z, divisor)));
 }
Пример #2
0
 /// <summary>
 /// Divide an int point and round up the result.
 /// </summary>
 /// <param name="lhs">The int point being divided.</param>
 /// <param name="divisor">What to divide the int point by.</param>
 /// <returns>A new divided int point.</returns>
 /// <see cref="DivideAndRoundDown"/>
 public static FIntPoint DivideAndRoundUp(FIntPoint lhs, FIntPoint divisor)
 {
     return(new FIntPoint(FMath.DivideAndRoundUp(lhs.X, divisor.X), FMath.DivideAndRoundUp(lhs.Y, divisor.Y)));
 }