FIntVector

Structure for integer vectors in 3-d space.

Windows
MacOS
Linux

Syntax

struct FIntVector

Remarks

Structure for integer vectors in 3-d space.

Variables

Name Description

Public variable

int32

 

X

Holds the point's x-coordinate.

Public variable

int32

 

Y

Holds the point's y-coordinate.

Public variable

int32

 

Z

Holds the point's z-coordinate.

Constructors

Name Description

Public function

FIntVector()

Default constructor (no initialization).

Public function

FIntVector

(
    int32 InValue
)

Constructor

Public function

FIntVector

(
    FVector InVector
)

Constructor

Public function

FIntVector

(
    EForceInit
)

Constructor

Public function

FIntVector

(
    int32 InX,
    int32 InY,
    int32 InZ
)

Creates and initializes a new instance with the specified coordinates.

Functions

Name Description

Public function Static

FIntVector

 

DivideAndRoundUp

(
    FIntVector lhs,
    int32 Divisor
)

Divide an int point and round up the result.

Public function Const

float

 

GetMax()

Gets the maximum value in the point.

Public function Const

float

 

GetMin()

Gets the minimum value in the point.

Public function Const

bool

 

IsZero()

Is vector equal to zero.

Public function Static

int32

 

Num()

Gets the number of components a point has.

Public function

bool

 

Serialize

(
    FArchive& Ar
)

Public function Const

int32

 

Size()

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

Public function Const

FString

 

ToString()

Get a textual representation of this vector.

Operators

Name Description

Public function Const

FIntVector

 

operator-

(
    const FIntVector& Other
)

Gets the result of subtraction from this point.

Public function Const

bool

 

operator!=

(
    const FIntVector& Other
)

Compares points for inequality.

Public function

int32 &

 

operator()

(
    int32 ComponentIndex
)

Gets specific component of a point.

Public function Const

const int32 ...

 

operator()

(
    int32 ComponentIndex
)

Gets specific component of a point.

Public function Const

FIntVector

 

operator*

(
    int32 Scale
)

Gets the result of scaling on this point.

Public function

FIntVector &

 

operator*=

(
    int32 Scale
)

Scales this point.

Public function Const

FIntVector

 

operator/

(
    int32 Divisor
)

Gets the result of division on this point.

Public function

FIntVector &

 

operator/=

(
    int32 Divisor
)

Divides this point.

Public function

int32 &

 

operator[]

(
    int32 ComponentIndex
)

Gets specific component of a point.

Public function Const

const int32 ...

 

operator[]

(
    int32 ComponentIndex
)

Gets specific component of a point.

Public function Const

FIntVector

 

operator+

(
    const FIntVector& Other
)

Gets the result of addition on this point.

Public function

FIntVector &

 

operator+=

(
    const FIntVector& Other
)

Adds to this point.

Public function

FIntVector &

 

operator=

(
    const FIntVector& Other
)

Assigns another point to this one.

Public function

FIntVector &

 

operator-=

(
    const FIntVector& Other
)

Subtracts from this point.

Public function Const

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

Module

Core

Header

Runtime/Core/Public/Math/IntVector.h

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.

Post Feedback