Navigation
Unreal Engine C++ API Reference > Runtime > Core > Math
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/IntVector.h |
Include | #include "Math/IntVector.h" |
Syntax
template<typename InIntType>
struct TIntVector3
Remarks
Structure for integer vectors in 3-d space.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
union UE::Math::TIntVector3::@463 | @464 | |
![]() |
IntType | X | Holds the point's x-coordinate. |
![]() |
IntType[3] | XYZ | |
![]() |
IntType | Y | Holds the point's y-coordinate. |
![]() |
IntType | Z | Holds the point'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
(
FVector InVector |
Constructor | |
![]() |
TIntVector3
(
EForceInit |
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
(
FVector InVector |
||
![]() |
TIntVector3
(
FVector InVector |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TIntVector3 | DivideAndRoundUp
(
TIntVector3 lhs, |
|
![]() ![]() |
TIntVector3 | DivideAndRoundUp
(
TIntVector3 lhs, |
Divide an int point and round up the result. |
![]() ![]() |
IntType | GetMax () |
Gets the maximum value in the point. |
![]() ![]() |
IntType | GetMin () |
Gets the minimum value in the point. |
![]() ![]() |
bool | IsZero () |
Is vector equal to zero. |
![]() ![]() |
int32 | Num () |
Gets the number of components a point has. |
![]() |
bool | ||
![]() |
bool | SerializeFromMismatchedTag
(
FName StructTag, |
|
![]() ![]() |
IntType | Size () |
Gets the distance of this point from (0,0,0). |
![]() ![]() |
FString | ToString () |
|
![]() ![]() |
FString | ToString () |
Get a textual representation of this vector. |
![]() ![]() |
FString | ToString () |
|
![]() ![]() |
FString | ToString () |
|
![]() ![]() |
FString | ToString () |
|
![]() ![]() |
FString | ToString () |
|
![]() ![]() |
FString | ToString () |
|
![]() ![]() |
FString | ToString () |
|
![]() ![]() |
FString | ToString () |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TIntVector3 | operator-
(
const TIntVector3& Other |
Gets the result of subtraction from this point. |
![]() ![]() |
bool | operator!=
(
const TIntVector3& Other |
Compares points for inequality. |
![]() ![]() |
TIntVector3 | Gets the remainder of division on this point. | |
![]() |
TIntVector3 & | operator%=
(
IntType Divisor |
Remainder of division of this point. |
![]() ![]() |
TIntVector3 | Component-wise AND. | |
![]() |
IntType & | operator()
(
int32 ComponentIndex |
Gets specific component of a point. |
![]() ![]() |
const IntType & | operator()
(
int32 ComponentIndex |
Gets specific component of a point. |
![]() ![]() |
TIntVector3 | Gets the result of scaling on this point. | |
![]() ![]() |
TIntVector3 | operator*
(
const TIntVector3& Other |
Gets the result of component-wise multiplication of this point by another. |
![]() |
TIntVector3 & | operator*=
(
IntType Scale |
Scales this point. |
![]() |
TIntVector3 & | operator*=
(
const TIntVector3& Other |
Multiplies this vector with another vector, using component-wise multiplication. |
![]() ![]() |
TIntVector3 | Gets the result of division on this point. | |
![]() |
TIntVector3 & | operator/=
(
IntType Divisor |
Divides this point. |
![]() |
IntType & | operator[]
(
int32 ComponentIndex |
Gets specific component of a point. |
![]() ![]() |
const IntType & | operator[]
(
int32 ComponentIndex |
Gets specific component of a point. |
![]() ![]() |
TIntVector3 | Component-wise XOR. | |
![]() ![]() |
TIntVector3 | Component-wise OR. | |
![]() ![]() |
TIntVector3 | operator+
(
const TIntVector3& Other |
Gets the result of addition on this point. |
![]() |
TIntVector3 & | operator+=
(
const TIntVector3& Other |
Adds to this point. |
![]() ![]() |
TIntVector3 | operator<<
(
IntType Shift |
Shifts all components to the left. |
![]() |
TIntVector3 & | operator=
(
TIntVector3&& |
|
![]() |
TIntVector3 & | operator=
(
const TIntVector3& |
|
![]() |
TIntVector3 & | operator-=
(
const TIntVector3& Other |
Subtracts from this point. |
![]() ![]() |
bool | operator==
(
const TIntVector3& Other |
Compares points for equality. |
![]() ![]() |
TIntVector3 | operator>>
(
IntType Shift |
Shifts all components to the right. |
Typedefs
Name | Description |
---|---|
IntType |