FIntRect::DivideAndRoundUp

Divides a rectangle and rounds up to the nearest integer.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/IntRect.h

Include

#include "Math/IntRect.h"

Syntax

static FIntRect DivideAndRoundUp
(
    FIntRect lhs,
    int32 Div
)

Remarks

Divides a rectangle and rounds up to the nearest integer.

Returns

New divided rectangle.

Parameters

Parameter

Description

lhs

The Rectangle to divide.

Div

What to divide by.