![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IntPoint.h>
Public Types | |
| using | IntType = InIntType |
Static Public Member Functions | |
| static TIntPoint | DivideAndRoundUp (TIntPoint lhs, IntType Divisor) |
| static TIntPoint | DivideAndRoundUp (TIntPoint lhs, TIntPoint Divisor) |
| static TIntPoint | DivideAndRoundDown (TIntPoint lhs, IntType Divisor) |
| static TIntPoint | DivideAndRoundDown (TIntPoint lhs, TIntPoint Divisor) |
| static int32 | Num () |
Public Attributes | ||
| union { | ||
| struct { | ||
| IntType X | ||
| IntType Y | ||
| } | ||
| IntType XY [2] | ||
| }; | ||
Static Public Attributes | |
| static const TIntPoint | ZeroValue |
| static const TIntPoint | NoneValue |
Friends | |
| FArchive & | operator<< (FArchive &Ar, TIntPoint &Point) |
| void | operator<< (FStructuredArchive::FSlot Slot, TIntPoint &Point) |
Structure for integer points in 2-d space.
| using UE::Math::TIntPoint< InIntType >::IntType = InIntType |
|
default |
Default constructor (no initialization).
|
inline |
Create and initialize a new instance with the specified coordinates.
| InX | The x-coordinate. |
| InY | The y-coordinate. |
|
inline |
Create and initialize a new instance with a single int. Both X and Y will be initialized to this value
| InXY | The x and y-coordinate. |
|
inlineexplicit |
Create and initialize a new instance to zero.
| EForceInit | Force init enum |
|
inlineexplicit |
Converts to another int type. Checks that the cast will succeed.
|
default |
|
default |
|
inline |
Get the component-wise max of two points.
|
inline |
Get the component-wise min of two points.
|
inlinestatic |
Divide an int point and round down the result.
| lhs | The int point being divided. |
| Divisor | What to divide the int point by. |
|
inlinestatic |
|
inlinestatic |
Divide an int point and round up the result.
| lhs | The int point being divided. |
| Divisor | What to divide the int point by. |
|
inlinestatic |
|
inline |
Get the larger of the point's two components.
|
inline |
Get the smaller of the point's two components.
|
inline |
Initialize this FIntPoint based on an FString. The String is expected to contain X=, Y= The FIntPoint will be bogus when InitFromString returns false.
| InSourceString | FString containing the color values. |
Get number of components point has.
|
inline |
Compare two points for inequality.
| Other | The other int point being compared. |
|
inline |
Get specific component of a point.
| PointIndex | Index of point component |
|
inline |
Get specific component of a point.
| PointIndex | Index of point component. |
|
inline |
Get the result of multiplication on this point.
| Other | The point to multiply with this point. |
|
inline |
Get the result of scaling on this point.
| Scale | What to multiply the point by. |
|
inline |
Multiply another point component-wise from this point.
| Other | The point to multiply with this point. |
|
inline |
Scale this point.
| Scale | What to multiply the point by. |
|
inline |
Get the result of addition on this point.
| Other | The other point to add to this. |
|
inline |
Add another point component-wise to this point.
| Other | The point to add to this point. |
|
inline |
Get the result of subtraction from this point.
| Other | The other point to subtract from this. |
|
inline |
Subtract another point component-wise from this point.
| Other | The point to subtract from this point. |
|
inline |
Get the result of division on this point.
| Other | The other point to subtract from this. |
|
inline |
Get the result of division on this point.
| Divisor | What to divide the point by. |
|
inline |
Divide this point component-wise by another point.
| Other | The point to divide with. |
|
inline |
Divide this point by a scalar.
| Divisor | What to divide the point by. |
|
default |
|
default |
|
inline |
Compare two points for equality.
| Other | The other int point being compared. |
|
inline |
Get specific component of the point.
| Index | the index of point component |
|
inline |
Get specific component of the point.
| Index | the index of point component |
|
inline |
Serialize the point.
| Ar | The archive to serialize into. |
|
inline |
|
inline |
Get the distance of this point from (0,0).
|
inline |
|
inline |
Get a textual representation of this point.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Serialize the point.
| Ar | The archive to serialize into. |
| Point | The point to serialize. |
|
friend |
Serialize the point.
| Slot | The structured archive slot to serialize into. |
| Point | The point to serialize. |
| union { ... } UE::Math::TIntPoint< InIntType > |
|
static |
An integer point with INDEX_NONE values.
Holds the point's x-coordinate.
| IntType UE::Math::TIntPoint< InIntType >::XY[2] |
Holds the point's y-coordinate.
|
static |
An integer point with zeroed values.