![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IntVector.h>
Public Types | |
| using | IntType = InIntType |
Static Public Member Functions | |
| static TIntVector3 | DivideAndRoundUp (TIntVector3 Lhs, IntType Divisor) |
| static TIntVector3 | DivideAndRoundUp (TIntVector3 Lhs, TIntVector3 Divisor) |
| static int32 | Num () |
Public Attributes | ||
| union { | ||
| struct { | ||
| IntType X | ||
| IntType Y | ||
| IntType Z | ||
| } | ||
| IntType XYZ [3] | ||
| }; | ||
Static Public Attributes | |
| static const TIntVector3 | ZeroValue |
| static const TIntVector3 | NoneValue |
Friends | |
| template<typename CharType > | |
| TStringBuilderBase< CharType > & | operator<< (TStringBuilderBase< CharType > &Builder, const TIntVector3 &Vector) |
| FArchive & | operator<< (FArchive &Ar, TIntVector3 &Vector) |
| void | operator<< (FStructuredArchive::FSlot Slot, TIntVector3 &Vector) |
Structure for integer vectors in 3-d space.
| using UE::Math::TIntVector3< InIntType >::IntType = InIntType |
|
default |
Default constructor (no initialization).
|
inline |
Creates and initializes a new instance with the specified coordinates.
| InX | The x-coordinate. |
| InY | The y-coordinate. |
| InZ | The z-coordinate. |
|
inlineexplicit |
Constructor
| InValue | replicated to all components |
|
inlineexplicit |
|
explicit |
Constructor
| InVector | float vector converted to int |
|
inlineexplicit |
Constructor
| EForceInit | Force init enum |
|
inlineexplicit |
Converts to another int type. Checks that the cast will succeed.
|
default |
|
default |
|
inline |
Appends a textual representation of this vector to the output string.
| Out | The string to append to. |
|
inline |
Appends a textual representation of this vector to the output string builder.
| Out | The string builder to append to. |
|
inline |
Get the component-wise max of this vector and the parameter vector.
| Other | The other vector to compare against. |
|
inline |
Get the component-wise min of this vector and the parameter vector.
| Other | The other vector to compare against. |
|
inlinestatic |
Divide an int vector and round up the result.
| Lhs | The int vector being divided. |
| Divisor | What to divide the int vector by. |
|
inlinestatic |
|
inline |
Get the maximum absolute value in the vector.
|
inline |
Get the minimum absolute value in the vector.
|
inline |
Gets the maximum value in the vector.
|
inline |
Gets the minimum value in the vector.
|
inline |
Initialize this vector based on an FString. The String is expected to contain X=, Y=, Z= The vector will be bogus when InitFromString returns false.
| InSourceString | FString containing the color values. |
|
inline |
Is vector equal to zero.
Gets the number of components a vector has.
|
inline |
Compares vectors for inequality.
| Other | The other int vector being compared. |
|
inline |
Gets the remainder of division on this vector.
| Divisor | What to divide the vector by. |
|
inline |
Remainder of division of this vector.
| Divisor | What to divide the vector by. |
|
inline |
Component-wise AND.
| Value | Number to AND with the each component. |
|
inline |
Gets specific component of a vector.
| ComponentIndex | Index of vector component. |
|
inline |
Gets specific component of a vector.
| ComponentIndex | Index of vector component. |
|
inline |
Gets the result of component-wise multiplication of this vector by another.
| Other | The vector to multiply with. |
|
inline |
Gets the result of scaling on this vector.
| Scale | What to multiply the vector by. |
|
inline |
Multiplies this vector with another vector, using component-wise multiplication.
| Other | The vector to multiply with. |
|
inline |
Scales this vector.
| Scale | What to multiply the vector by. |
|
inline |
Gets the result of addition on this vector.
| Other | The other vector to add to this. |
|
inline |
Adds to this vector.
| Other | The vector to add to this vector. |
|
inline |
Gets the result of subtraction from this vector.
| Other | The other vector to subtract from this. |
|
inline |
Subtracts from this vector.
| Other | The vector to subtract from this vector. |
|
inline |
Gets the result of division on this vector.
| Divisor | What to divide the vector by. |
|
inline |
Divides this vector.
| Divisor | What to divide the vector by. |
|
inline |
Shifts all components to the left.
| Shift | The number of bits to shift. |
|
default |
|
default |
|
inline |
Compares vectors for equality.
| Other | The other int vector being compared. |
|
inline |
Shifts all components to the right.
| Shift | The number of bits to shift. |
|
inline |
Gets specific component of a vector.
| ComponentIndex | Index of vector component. |
|
inline |
Gets specific component of a vector.
| ComponentIndex | Index of vector component. |
|
inline |
Component-wise XOR.
| Value | Number to XOR with the each component. |
|
inline |
Component-wise OR.
| Value | Number to OR with the each component. |
|
inline |
|
inline |
|
inline |
Gets the distance of this vector from (0,0,0).
|
inline |
Get a textual representation of this vector.
|
friend |
Serializes the Vector3.
| Ar | The archive to serialize into. |
| Vector | The vector to serialize. |
|
friend |
|
friend |
Appends a textual representation of the parameter vector to the output string builder.
| Builder | The string builder to append to. |
| Vector | The vector to append. |
| union { ... } UE::Math::TIntVector3< InIntType > |
|
static |
An int vector with INDEX_NONE values.
Holds the vector's x-coordinate.
| IntType UE::Math::TIntVector3< InIntType >::XYZ[3] |
Holds the vector's y-coordinate.
Holds the vector's z-coordinate.
|
static |
An int vector with zeroed values.