# FIntVector

Syntax

struct FIntVector

Remarks

Structure for integer vectors in 3-d space.

Variables

Name Description

X

Holds the point's x-coordinate.

Y

Holds the point's y-coordinate.

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

DivideAndRoundUp

(
FIntVector lhs,
int32 Divisor
)

Divide an int point and round up the result.

float

GetMax()

Gets the maximum value in the point.

float

GetMin()

Gets the minimum value in the point.

bool

IsZero()

Is vector equal to zero.

Num()

Gets the number of components a point has.

bool

Serialize

(
FArchive & Ar
)

Size()

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

ToString()

Get a textual representation of this vector.

Operators

Name Description

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.

operator*

(
int32 Scale
)

Gets the result of scaling on this point.

operator*=

(
int32 Scale
)

Scales this point.

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.

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.

References