Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/IntPoint.h |
Include |
#include "Math/IntPoint.h" |
struct FIntPoint
Structure for integer points in 2-d space.
Name | Description | |
---|---|---|
|
FIntPoint() |
Default constructor (no initialization). |
|
FIntPoint ( |
Create and initialize a new instance with a single int. |
|
FIntPoint ( |
Create and initialize a new instance to zero. |
|
FIntPoint |
Create and initialize a new instance with the specified coordinates. |
Name | Description | ||
---|---|---|---|
|
ComponentMax ( |
Get the component-wise max of two points. |
|
|
ComponentMin ( |
Get the component-wise min of two points. |
|
|
DivideAndRoundDown |
Divide an int point and round down the result. |
|
|
DivideAndRoundUp |
Divide an int point and round up the result. |
|
|
DivideAndRoundUp |
Divide an int point and round up the result. |
|
|
GetMax() |
Get the larger of the point's two components. |
|
|
GetMin() |
Get the smaller of the point's two components. |
|
|
Num() |
Get number of components point has. |
|
|
Serialize ( |
Serialize the point. |
|
|
Serialize ( |
Serialize the point. |
|
|
Size() |
Get the distance of this point from (0,0). |
|
|
SizeSquared() |
Get the squared distance of this point from (0,0). |
|
|
ToString() |
Get a textual representation of this point. |
Name | Description | ||
---|---|---|---|
|
operator- ( |
Get the result of subtraction from this point. |
|
|
operator!= ( |
Compare two points for inequality. |
|
|
const int32 ... |
operator() ( |
Get specific component of a point. |
|
int32 & |
operator() ( |
Get specific component of a point. |
|
operator* ( |
Get the result of scaling on this point. |
|
|
operator* ( |
Get the result of multiplication on this point. |
|
|
operator*= ( |
Scale this point. |
|
|
operator*= ( |
Multiply another point component-wise from this point. |
|
|
operator/ ( |
Get the result of division on this point. |
|
|
operator/ ( |
Get the result of division on this point. |
|
|
operator/= ( |
Divide this point by a scalar. |
|
|
operator/= ( |
Divide this point component-wise by another point. |
|
|
int32 & |
operator[] ( |
Get specific component of the point. |
|
operator[] ( |
Get specific component of the point. |
|
|
operator+ ( |
Get the result of addition on this point. |
|
|
operator+= ( |
Add another point component-wise to this point. |
|
|
operator= ( |
Assign another point to this one. |
|
|
operator-= ( |
Subtract another point component-wise from this point. |
|
|
operator== ( |
Compare two points for equality. |