![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IntRect.h>
Public Types | |
| using | IntType = InIntType |
| using | IntPointType = TIntPoint< IntType > |
Static Public Member Functions | |
| static TIntRect | DivideAndRoundUp (TIntRect lhs, IntType Div) |
| static TIntRect | DivideAndRoundUp (TIntRect lhs, IntPointType Div) |
| static constexpr int32 | Num () |
Public Attributes | ||
| union { | ||
| struct { | ||
| IntPointType Min | ||
| IntPointType Max | ||
| } | ||
| IntPointType MinMax [2] | ||
| }; | ||
Friends | |
| FArchive & | operator<< (FArchive &Ar, TIntRect &Rect) |
Structure for integer rectangles in 2-d space.
Represented as half-open bounds [min, max)
| using UE::Math::TIntRect< InIntType >::IntPointType = TIntPoint<IntType> |
| using UE::Math::TIntRect< InIntType >::IntType = InIntType |
|
inline |
Constructor
Constructor
| X0 | Minimum X coordinate (inclusive) |
| Y0 | Minimum Y coordinate (inclusive) |
| X1 | Maximum X coordinate (exclusive) |
| Y1 | Maximum Y coordinate (exclusive) |
|
inline |
Constructor
| InMin | Minimum Point (inclusive) |
| InMax | Maximum Point (exclusive) |
|
inline |
|
inlineexplicit |
Converts to another int type. Checks that the cast will succeed.
|
inline |
Calculates the area of this rectangle.
|
inline |
Creates a rectangle from the bottom part of this rectangle.
| InHeight | Height of the new rectangle (<= rectangles original height). |
|
inline |
Clip a rectangle using the bounds of another rectangle.
| Other | The other rectangle to clip against. |
|
inline |
Test whether this rectangle fully contains other rectangle.
|
inline |
Test whether this rectangle contains a point.
| Point | The point to test against. |
|
inlinestatic |
|
inlinestatic |
Divides a rectangle and rounds up to the nearest integer.
| lhs | The Rectangle to divide. |
| Div | What to divide by. |
|
inline |
Gets the Center and Extents of this rectangle.
| OutCenter | Will contain the center point. |
| OutExtent | Will contain the extent. |
|
inline |
Gets the Height of the rectangle.
|
inline |
Adds to this rectangle to include a given point.
| Point | The point to increase the rectangle to. |
|
inline |
Inflates or deflates the rectangle.
| Amount | The amount to inflate or deflate the rectangle on each side. |
|
inline |
Gets a new rectangle from the inner of this one.
| Shrink | How much to remove from each point of this rectangle. |
|
inline |
Returns true if the two rects have any overlap.
| Other | The rect to compare with. |
|
inline |
Returns true if the rectangle is 0 x 0.
|
inlinestaticconstexpr |
Gets number of points in the Rectangle.
|
inline |
Compares Rectangles for inequality.
| Other | The Other Rectangle for comparison. |
|
inline |
Gets a specific point in this rectangle.
| PointIndex | Index of Point in rectangle. |
|
inline |
Gets a specific point in this rectangle.
| PointIndex | Index of Point in rectangle. |
|
inline |
Gets the result of scaling on this rectangle.
| Scale | What to multiply this rectangle by. |
|
inline |
Applies scaling to this rectangle.
| Scale | What to multiply the rectangle by. |
|
inline |
Gets the result of adding a point to this rectangle.
| Point | The point to add to both points in the rectangle. |
|
inline |
Gets the result of adding two rectangles together.
| Other | The other rectangle to add to this. |
|
inline |
Adds a point to this rectangle.
| Point | The point to add onto both points in the rectangle. |
|
inline |
Gets the result of subtracting a point from this rectangle.
| Point | The point to subtract from both points in the rectangle. |
|
inline |
Gets the result of subtracting a rectangle from this one.
| Other | The other rectangle to subtract from this. |
|
inline |
Subtracts a point from this rectangle.
| Point | The point to subtract from both points in the rectangle. |
|
inline |
Gets the result of dividing a point with this rectangle.
| Point | The point to divide with. |
|
inline |
Gets the result of division on this rectangle.
| Div | What to divide this rectangle by. |
|
inline |
|
inline |
Compares Rectangles for equality.
| Other | The Other Rectangle for comparison. |
|
inline |
Creates a rectangle from the right hand side of this rectangle.
| InWidth | Width of the new rectangle (<= rectangles original width). |
|
inline |
Scales a rectangle using a floating point number.
| Fraction | What to scale the rectangle by |
|
inline |
Gets the distance from one corner of the rectangle to the other.
|
inline |
Get a textual representation of this rectangle.
|
inline |
Combines the two rectangles.
|
inline |
Gets the width of the rectangle.
Serializes the Rectangle.
| Ar | The archive to serialize into. |
| Rect | The rectangle to serialize. |
| union { ... } UE::Math::TIntRect< InIntType > |
| IntPointType UE::Math::TIntRect< InIntType >::Max |
Holds the last pixel line/row (like in Win32 RECT).
| IntPointType UE::Math::TIntRect< InIntType >::Min |
Holds the first pixel line/row (like in Win32 RECT).
| IntPointType UE::Math::TIntRect< InIntType >::MinMax[2] |