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 TIntVector4
Variables
| Type | Name | Description | |
|---|---|---|---|
| union UE::Math::TIntVector4 | |||
| IntType | W | Holds the vector's w-coordinate. | |
| IntType | X | Holds the vector's x-coordinate. | |
| IntType[4] | XYZW | ||
| IntType | Y | Holds the vector's y-coordinate. | |
| IntType | Z | Holds the vector's z-coordinate. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TIntVector4 () |
|||
TIntVector4
(
IntType InValue |
|||
TIntVector4
(
TIntVector4< OtherIntType > Other |
Converts to another int type. Checks that the cast will succeed. | ||
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | TIntVector4
(
TIntVector4&& |
Workaround for clang deprecation warnings for deprecated XYZW member in implicitly-defined special member functions. | |
TIntVector4
(
const TIntVector4& |
|||
TIntVector4
(
const TIntVector3< IntType >& InValue, |
|||
TIntVector4
(
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. | |
| TIntVector4 | ComponentMax
(
const TIntVector4& Other |
Get the component-wise max of this vector and the parameter vector. | |
| TIntVector4 | ComponentMin
(
const TIntVector4& Other |
Get the component-wise min of this vector and the parameter vector. | |
| TIntVector4 | DivideAndRoundUp
(
TIntVector4 Lhs, |
Divide an int vector and round up the result. | |
| TIntVector4 | DivideAndRoundUp
(
TIntVector4 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 vector 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 | |
|---|---|---|---|
| TIntVector4 | operator-
(
const TIntVector4& Other |
Gets the result of subtraction from this vector. | |
| bool | operator!=
(
const TIntVector4& Other |
Compares vectors for inequality. | |
| TIntVector4 | Gets the remainder of division on this vector. | ||
| TIntVector4 & | operator%=
(
IntType Divisor |
Remainder of division of this vector. | |
| TIntVector4 | Component-wise AND. | ||
| IntType & | operator()
(
int32 ComponentIndex |
Gets specific component of a vector. | |
| const IntType & | operator()
(
int32 ComponentIndex |
Gets specific component of a vector. | |
| TIntVector4 | Gets the result of scaling on this vector. | ||
| TIntVector4 | operator*
(
const TIntVector4& Other |
Gets the result of component-wise multiplication of this vector by another. | |
| TIntVector4 & | operator*=
(
IntType Scale |
Scales this vector. | |
| TIntVector4 & | operator*=
(
const TIntVector4& Other |
Multiplies this vector with another vector, using component-wise multiplication. | |
| TIntVector4 | Gets the result of division on this vector. | ||
| TIntVector4 & | operator/=
(
IntType Divisor |
Divides this vector. | |
| const IntType & | operator[]
(
int32 ComponentIndex |
Gets specific component of a vector. | |
| IntType & | operator[]
(
int32 ComponentIndex |
Gets specific component of a vector. | |
| TIntVector4 | Component-wise XOR. | ||
| TIntVector4 | Component-wise OR. | ||
| TIntVector4 | operator+
(
const TIntVector4& Other |
Gets the result of addition on this vector. | |
| TIntVector4 & | operator+=
(
const TIntVector4& Other |
Adds to this vector. | |
| TIntVector4 | operator<<
(
IntType Shift |
Shifts all components to the left. | |
| TIntVector4 & | operator=
(
TIntVector4&& |
||
| TIntVector4 & | operator=
(
const TIntVector4& |
||
| TIntVector4 & | operator-=
(
const TIntVector4& Other |
Subtracts from this vector. | |
| bool | operator==
(
const TIntVector4& Other |
Compares vectors for equality. | |
| TIntVector4 | operator>>
(
IntType Shift |
Shifts all components to the right. |
Typedefs
| Name | Description |
|---|---|
| IntType |