# 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.

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.

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+

(
const FIntVector& Other
)

Gets the result of addition on this point.

operator+=

(
const FIntVector& Other
)

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.

Constants

Name

Description

NoneValue

An int point with INDEX_NONE values.

ZeroValue

An int point with zeroed values.

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.