Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/IntVector.h |
| Include | #include "Math/IntVector.h" |
| Source | /Engine/Source/Runtime/Core/Public/Math/MathFwd.h |
Syntax
template<typename IntType >
struct TIntVector2
Variables
| Type | Name | Description | |
|---|---|---|---|
| union UE::Math::TIntVector2 | |||
| IntType | X | Holds the vector's x-coordinate. | |
| IntType[2] | XY | ||
| IntType | Y | Holds the vector's y-coordinate. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TIntVector2 () |
|||
TIntVector2
(
IntType InValue |
|||
TIntVector2
(
TIntVector2< OtherIntType > Other |
Converts to another int type. Checks that the cast will succeed. | ||
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | TIntVector2
(
TIntVector2&& |
Workaround for clang deprecation warnings for deprecated XY member in implicitly-defined special member functions. | |
TIntVector2
(
const TIntVector2& |
|||
TIntVector2
(
IntType InX, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendString
(
TStringBuilderBase< CharType >& Out |
Appends a textual representation of this vector to the output string builder. | |
| void | AppendString
(
FString& Out |
Appends a textual representation of this vector to the output string. | |
| TIntVector2 | ComponentMax
(
const TIntVector2& Other |
Get the component-wise max of this vector and the parameter vector. | |
| TIntVector2 | ComponentMin
(
const TIntVector2& Other |
Get the component-wise min of this vector and the parameter vector. | |
| TIntVector2 | DivideAndRoundUp
(
TIntVector2 Lhs, |
Divide an int vector and round up the result. | |
| TIntVector2 | DivideAndRoundUp
(
TIntVector2 Lhs, |
||
| IntType | GetAbsMax () |
Get the maximum absolute value in the vector. | |
| IntType | GetAbsMin () |
Get the minimum absolute value in the vector. | |
| IntType | GetMax () |
Gets the maximum value in the vector. | |
| IntType | GetMin () |
Gets the minimum value in the vector. | |
| bool | InitFromString
(
const FString& InSourceString |
Initialize this FIntVector based on an FString. | |
| bool | IsZero () |
Is vector equal to zero. | |
| int32 | Num () |
Gets the number of components a vector has. | |
| bool | |||
| bool | SerializeFromMismatchedTag
(
FName StructTag, |
||
| FString | ToString () |
Get a textual representation of this vector. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TIntVector2 | operator-
(
const TIntVector2& Other |
Gets the result of subtraction from this vector. | |
| bool | operator!=
(
const TIntVector2& Other |
||
| TIntVector2 | Gets the remainder of division on this vector. | ||
| TIntVector2 & | operator%=
(
IntType Divisor |
Remainder of division of this vector. | |
| TIntVector2 | Gets the result of scaling on this vector. | ||
| TIntVector2 | operator*
(
const TIntVector2& Other |
Gets the result of component-wise multiplication of this vector by another. | |
| TIntVector2 & | operator*=
(
const TIntVector2& Other |
Multiplies this vector with another vector, using component-wise multiplication. | |
| TIntVector2 & | operator*=
(
IntType Scale |
Scales this vector. | |
| TIntVector2 | Gets the result of division on this vector. | ||
| TIntVector2 & | operator/=
(
IntType Divisor |
Divides this vector. | |
| IntType & | operator[]
(
int32 ComponentIndex |
||
| const IntType & | operator[]
(
int32 ComponentIndex |
||
| TIntVector2 | operator+
(
const TIntVector2& Other |
Gets the result of addition on this vector. | |
| TIntVector2 & | operator+=
(
const TIntVector2& Other |
Adds to this vector. | |
| TIntVector2 & | operator=
(
const TIntVector2& |
||
| TIntVector2 & | operator=
(
TIntVector2&& |
||
| TIntVector2 & | operator-=
(
const TIntVector2& Other |
Subtracts from this vector. | |
| bool | operator==
(
const TIntVector2& Other |
Typedefs
| Name | Description |
|---|---|
| IntType |