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 TIntVector3
Remarks
Structure for integer vectors in 3-d space.
Variables
| Type | Name | Description | |
|---|---|---|---|
| union UE::Math::TIntVector3 | |||
| IntType | X | Holds the vector's x-coordinate. | |
| IntType[3] | XYZ | ||
| IntType | Y | Holds the vector's y-coordinate. | |
| IntType | Z | Holds the vector's z-coordinate. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TIntVector3 () |
Default constructor (no initialization). | ||
TIntVector3
(
IntType InX, |
Creates and initializes a new instance with the specified coordinates. | ||
TIntVector3
(
IntType InValue |
Constructor | ||
TIntVector3
(
TVector< FloatType > InVector |
Constructor | ||
| Constructor | |||
TIntVector3
(
TIntVector3< OtherIntType > Other |
Converts to another int type. Checks that the cast will succeed. | ||
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | TIntVector3
(
TIntVector3&& |
Workaround for clang deprecation warnings for deprecated XYZ member in implicitly-defined special member functions. | |
TIntVector3
(
const TIntVector3& |
|||
TIntVector3
(
TVector< T > InVector |
|||
TIntVector3
(
TVector< T > InVector |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendString
(
FString& Out |
Appends a textual representation of this vector to the output string. | |
| void | AppendString
(
TStringBuilderBase< CharType >& Out |
Appends a textual representation of this vector to the output string builder. | |
| TIntVector3 | ComponentMax
(
const TIntVector3& Other |
Get the component-wise max of this vector and the parameter vector. | |
| TIntVector3 | ComponentMin
(
const TIntVector3& Other |
Get the component-wise min of this vector and the parameter vector. | |
| TIntVector3 | DivideAndRoundUp
(
TIntVector3 Lhs, |
Divide an int vector and round up the result. | |
| TIntVector3 | DivideAndRoundUp
(
TIntVector3 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, |
||
| IntType | Size () |
Gets the distance of this vector from (0,0,0). | |
| FString | ToString () |
Get a textual representation of this vector. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TIntVector3 | operator-
(
const TIntVector3& Other |
Gets the result of subtraction from this vector. | |
| bool | operator!=
(
const TIntVector3& Other |
Compares vectors for inequality. | |
| TIntVector3 | Gets the remainder of division on this vector. | ||
| TIntVector3 & | operator%=
(
IntType Divisor |
Remainder of division of this vector. | |
| TIntVector3 | Component-wise AND. | ||
| IntType & | operator()
(
int32 ComponentIndex |
Gets specific component of a vector. | |
| const IntType & | operator()
(
int32 ComponentIndex |
Gets specific component of a vector. | |
| TIntVector3 | operator*
(
const TIntVector3& Other |
Gets the result of component-wise multiplication of this vector by another. | |
| TIntVector3 | Gets the result of scaling on this vector. | ||
| TIntVector3 & | operator*=
(
IntType Scale |
Scales this vector. | |
| TIntVector3 & | operator*=
(
const TIntVector3& Other |
Multiplies this vector with another vector, using component-wise multiplication. | |
| TIntVector3 | Gets the result of division on this vector. | ||
| TIntVector3 & | operator/=
(
IntType Divisor |
Divides this vector. | |
| IntType & | operator[]
(
int32 ComponentIndex |
Gets specific component of a vector. | |
| const IntType & | operator[]
(
int32 ComponentIndex |
Gets specific component of a vector. | |
| TIntVector3 | Component-wise XOR. | ||
| TIntVector3 | Component-wise OR. | ||
| TIntVector3 | operator+
(
const TIntVector3& Other |
Gets the result of addition on this vector. | |
| TIntVector3 & | operator+=
(
const TIntVector3& Other |
Adds to this vector. | |
| TIntVector3 | operator<<
(
IntType Shift |
Shifts all components to the left. | |
| TIntVector3 & | operator=
(
const TIntVector3& |
||
| TIntVector3 & | operator=
(
TIntVector3&& |
||
| TIntVector3 & | operator-=
(
const TIntVector3& Other |
Subtracts from this vector. | |
| bool | operator==
(
const TIntVector3& Other |
Compares vectors for equality. | |
| TIntVector3 | operator>>
(
IntType Shift |
Shifts all components to the right. |
Typedefs
| Name | Description |
|---|---|
| IntType |