Navigation
API > API/Runtime > API/Runtime/Core
| Name | TIntVector4 |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Math/IntVector.h |
| Include Path | #include "Math/IntVector.h" |
| Source | /Engine/Source/Runtime/Core/Public/Math/MathFwd.h |
Syntax
template<typename IntType>
struct TIntVector4
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TIntVector4
(
const TIntVector3< IntType >& InValue, |
Math/IntVector.h | ||
TIntVector4 () |
Math/IntVector.h | ||
TIntVector4
(
IntType InValue |
Math/IntVector.h | ||
| Math/IntVector.h | |||
TIntVector4
(
TIntVector4< OtherIntType > Other |
Converts to another int type. Checks that the cast will succeed. | Math/IntVector.h | |
PRAGMA_DISABLE_DEPRECATION_WARNINGS TIntVector4
(
TIntVector4&& |
Workaround for clang deprecation warnings for deprecated XYZW member in implicitly-defined special member functions. | Math/IntVector.h | |
TIntVector4
(
const TIntVector4& |
Math/IntVector.h | ||
TIntVector4
(
IntType InX, |
Math/IntVector.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| IntType | InIntType | Math/IntVector.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| NoneValue | const TIntVector4 | An int vector with INDEX_NONE values. | Math/IntVector.h |
| ZeroValue | const TIntVector4 | An int vector with zeroed values. | Math/IntVector.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| TIntVector4 | union UE::Math::TIntVector4 | Math/IntVector.h | ||
| W | IntType | Holds the vector's w-coordinate. | Math/IntVector.h | |
| X | IntType | Holds the vector's x-coordinate. | Math/IntVector.h | |
| XYZW | IntType | Math/IntVector.h | ||
| Y | IntType | Holds the vector's y-coordinate. | Math/IntVector.h | |
| Z | IntType | Holds the vector's z-coordinate. | Math/IntVector.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AppendString
(
TStringBuilderBase< CharType >& Out |
Appends a textual representation of this vector to the output string builder. | Math/IntVector.h | |
void AppendString
(
FString& Out |
Appends a textual representation of this vector to the output string. | Math/IntVector.h | |
TIntVector4 ComponentMax
(
const TIntVector4& Other |
Get the component-wise max of this vector and the parameter vector. | Math/IntVector.h | |
TIntVector4 ComponentMin
(
const TIntVector4& Other |
Get the component-wise min of this vector and the parameter vector. | Math/IntVector.h | |
IntType GetAbsMax() |
Get the maximum absolute value in the vector. | Math/IntVector.h | |
IntType GetAbsMin() |
Get the minimum absolute value in the vector. | Math/IntVector.h | |
IntType GetMax() |
Gets the maximum value in the vector. | Math/IntVector.h | |
IntType GetMin() |
Gets the minimum value in the vector. | Math/IntVector.h | |
bool InitFromString
(
const FString& InSourceString |
Initialize this vector based on an FString. | Math/IntVector.h | |
bool IsZero() |
Is vector equal to zero. | Math/IntVector.h | |
bool Serialize
(
FArchive& Ar |
Math/IntVector.h | ||
| Math/IntVector.h | |||
FString ToString() |
Get a textual representation of this vector. | Math/IntVector.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TIntVector4 DivideAndRoundUp
(
TIntVector4 Lhs, |
Divide an int vector and round up the result. | Math/IntVector.h | |
static TIntVector4 DivideAndRoundUp
(
TIntVector4 Lhs, |
Math/IntVector.h | ||
static int32 Num() |
Gets the number of components a vector has. | Math/IntVector.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TIntVector4 operator-
(
const TIntVector4& Other |
Gets the result of subtraction from this vector. | Math/IntVector.h | |
bool operator!=
(
const TIntVector4& Other |
Compares vectors for inequality. | Math/IntVector.h | |
TIntVector4 operator%
(
IntType Divisor |
Gets the remainder of division on this vector. | Math/IntVector.h | |
TIntVector4 & operator%=
(
IntType Divisor |
Remainder of division of this vector. | Math/IntVector.h | |
TIntVector4 operator&
(
IntType Value |
Component-wise AND. | Math/IntVector.h | |
IntType & operator()
(
int32 ComponentIndex |
Gets specific component of a vector. | Math/IntVector.h | |
const IntType & operator()
(
int32 ComponentIndex |
Gets specific component of a vector. | Math/IntVector.h | |
TIntVector4 operator*
(
IntType Scale |
Gets the result of scaling on this vector. | Math/IntVector.h | |
TIntVector4 operator*
(
const TIntVector4& Other |
Gets the result of component-wise multiplication of this vector by another. | Math/IntVector.h | |
TIntVector4 & operator*=
(
IntType Scale |
Scales this vector. | Math/IntVector.h | |
TIntVector4 & operator*=
(
const TIntVector4& Other |
Multiplies this vector with another vector, using component-wise multiplication. | Math/IntVector.h | |
TIntVector4 operator/
(
IntType Divisor |
Gets the result of division on this vector. | Math/IntVector.h | |
TIntVector4 & operator/=
(
IntType Divisor |
Divides this vector. | Math/IntVector.h | |
const IntType & operator[]
(
int32 ComponentIndex |
Gets specific component of a vector. | Math/IntVector.h | |
IntType & operator[]
(
int32 ComponentIndex |
Gets specific component of a vector. | Math/IntVector.h | |
TIntVector4 operator^
(
IntType Value |
Component-wise XOR. | Math/IntVector.h | |
TIntVector4 operator|
(
IntType Value |
Component-wise OR. | Math/IntVector.h | |
TIntVector4 operator+
(
const TIntVector4& Other |
Gets the result of addition on this vector. | Math/IntVector.h | |
TIntVector4 & operator+=
(
const TIntVector4& Other |
Adds to this vector. | Math/IntVector.h | |
TIntVector4 & operator=
(
TIntVector4&& |
Math/IntVector.h | ||
TIntVector4 & operator=
(
const TIntVector4& |
Math/IntVector.h | ||
TIntVector4 & operator-=
(
const TIntVector4& Other |
Subtracts from this vector. | Math/IntVector.h | |
bool operator==
(
const TIntVector4& Other |
Compares vectors for equality. | Math/IntVector.h | |
TIntVector4 operator>>
(
IntType Shift |
Shifts all components to the right. | Math/IntVector.h |