Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/IntPoint.h |
| Include | #include "Math/IntPoint.h" |
Syntax
template<typename InIntType>
struct TIntPoint
Remarks
Structure for integer points in 2-d space.
Variables
| Type | Name | Description | |
|---|---|---|---|
| union UE::Math::TIntPoint::@439 | @440 | ||
| IntType | X | Holds the point's x-coordinate. | |
| IntType[2] | XY | ||
| IntType | Y | Holds the point's y-coordinate. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TIntPoint () |
Default constructor (no initialization). | ||
| Create and initialize a new instance with a single int. | |||
TIntPoint
(
EForceInit |
Create and initialize a new instance to zero. | ||
| Converts to another int type. Checks that the cast will succeed. | |||
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | Workaround for clang deprecation warnings for deprecated XY member in implicitly-defined special member functions. | ||
| Create and initialize a new instance with the specified coordinates. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TIntPoint | ComponentMax
(
const TIntPoint& Other |
Get the component-wise max of two points. | |
| TIntPoint | ComponentMin
(
const TIntPoint& Other |
Get the component-wise min of two points. | |
| TIntPoint | DivideAndRoundDown
(
TIntPoint lhs, |
||
| TIntPoint | DivideAndRoundDown
(
TIntPoint lhs, |
Divide an int point and round down the result. | |
| TIntPoint | DivideAndRoundUp
(
TIntPoint lhs, |
||
| TIntPoint | DivideAndRoundUp
(
TIntPoint lhs, |
Divide an int point and round up the result. | |
| IntType | GetMax () |
Get the larger of the point's two components. | |
| IntType | GetMin () |
Get the smaller of the point's two components. | |
| int32 | Num () |
Get number of components point has. | |
| bool | Serialize the point. | ||
| bool | SerializeFromMismatchedTag
(
FName StructTag, |
||
| IntType | Size () |
Get the distance of this point from (0,0). | |
| IntType | SizeSquared () |
Get the squared distance of this point from (0,0). | |
| FString | ToString () |
||
| FString | ToString () |
||
| FString | ToString () |
||
| FString | ToString () |
Get a textual representation of this point. | |
| FString | ToString () |
||
| FString | ToString () |
||
| FString | ToString () |
||
| FString | ToString () |
||
| FString | ToString () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TIntPoint | Get the result of subtraction from this point. | ||
| bool | operator!=
(
const TIntPoint& Other |
Compare two points for inequality. | |
| IntType & | operator()
(
int32 PointIndex |
Get specific component of a point. | |
| const IntType & | operator()
(
int32 PointIndex |
Get specific component of a point. | |
| TIntPoint | Get the result of multiplication on this point. | ||
| TIntPoint | Get the result of scaling on this point. | ||
| TIntPoint & | operator*=
(
IntType Scale |
Scale this point. | |
| TIntPoint & | operator*=
(
const TIntPoint& Other |
Multiply another point component-wise from this point. | |
| TIntPoint | Get the result of division on this point. | ||
| TIntPoint | Get the result of division on this point. | ||
| TIntPoint & | operator/=
(
IntType Divisor |
Divide this point by a scalar. | |
| TIntPoint & | operator/=
(
const TIntPoint& Other |
Divide this point component-wise by another point. | |
| IntType & | operator[]
(
IntType Index |
Get specific component of the point. | |
| IntType | operator[]
(
IntType Index |
Get specific component of the point. | |
| TIntPoint | Get the result of addition on this point. | ||
| TIntPoint & | operator+=
(
const TIntPoint& Other |
Add another point component-wise to this point. | |
| TIntPoint & | |||
| TIntPoint & | |||
| TIntPoint & | operator-=
(
const TIntPoint& Other |
Subtract another point component-wise from this point. | |
| bool | operator==
(
const TIntPoint& Other |
Compare two points for equality. |
Typedefs
| Name | Description |
|---|---|
| IntType |