# FIntVector

## Structure for integer vectors in 3-d space.

References

 Module Core Header /Engine/Source/Runtime/Core/Public/Math/IntVector.h Include #include "Math/IntVector.h"

Syntax

struct FIntVector

Remarks

Structure for integer vectors in 3-d space.

Variables

Name Description

int32

X

Holds the point's x-coordinate.

int32

Y

Holds the point's y-coordinate.

int32

Z

Holds the point's z-coordinate.

Constructors

Name Description

FIntVector()

Default constructor (no initialization).

FIntVector

(
int32 InValue
)

Constructor

FIntVector

(
FVector InVector
)

Constructor

FIntVector

Constructor

FIntVector

(
int32 InX,
int32 InY,
int32 InZ
)

Creates and initializes a new instance with the specified coordinates.

Functions

Name Description

FIntVector

DivideAndRoundUp

(
FIntVector lhs,
int32 Divisor
)

Divide an int point and round up the result.

FIntVector

DivideAndRoundUp

(
FIntVector lhs,
FIntVector Divisor
)

Divide an int point and round up the result.

int32

GetMax()

Gets the maximum value in the point.

int32

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

Serialize

(
FArchive& Ar
)

int32

Size()

Gets the distance of this point from (0,0,0).

FString

ToString()

Get a textual representation of this vector.

Operators

Name Description

FIntVector

operator-

(
const FIntVector& Other
)

Gets the result of subtraction from this point.

bool

operator!=

(
const FIntVector& Other
)

Compares points for inequality.

FIntVector

operator&

(
int32 Val
)

Component-wise AND.

operator()

(
int32 ComponentIndex
)

Gets specific component of a point.

const int32 ...

operator()

(
int32 ComponentIndex
)

Gets specific component of a point.

FIntVector

operator*

(
int32 Scale
)

Gets the result of scaling on this point.

operator*=

(
int32 Scale
)

Scales this point.

FIntVector

operator/

(
int32 Divisor
)

Gets the result of division on this point.

operator/=

(
int32 Divisor
)

Divides this point.

operator[]

(
int32 ComponentIndex
)

Gets specific component of a point.

const int32 ...

operator[]

(
int32 ComponentIndex
)

Gets specific component of a point.

FIntVector

operator^

(
int32 Value
)

Component-wise XOR.

FIntVector

operator|

(
int32 Value
)

Component-wise OR.

FIntVector

operator+

(
const FIntVector& Other
)

Gets the result of addition on this point.

operator+=

(
const FIntVector& Other
)

Adds to this point.

FIntVector

operator<<

(
int32 Shift
)

Shifts all components to the left.

operator=

(
const FIntVector& Other
)

Assigns another point to this one.

operator-=

(
const FIntVector& Other
)

Subtracts from this point.

bool

operator==

(
const FIntVector& Other
)

Compares points for equality.

FIntVector

operator>>

(
int32 Shift
)

Shifts all components to the right.

Constants

Name

Description

NoneValue

An int point with INDEX_NONE values.

ZeroValue

An int point with zeroed values.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.