FIntVector

Structure for integer vectors in 3-d space.

Windows
MacOS
Linux

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

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 Static

FIntVector

 

DivideAndRoundUp

(
    FIntVector lhs,
    FIntVector Divisor
)

Divide an int point and round up the result.

Public function Const

int32

 

GetMax()

Gets the maximum value in the point.

Public function Const

int32

 

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 Const

FIntVector

 

operator&

(
    int32 Val
)

Component-wise AND.

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^

(
    int32 Value
)

Component-wise XOR.

Public function Const

FIntVector

 

operator|

(
    int32 Value
)

Component-wise OR.

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 Const

FIntVector

 

operator<<

(
    int32 Shift
)

Shifts all components to the left.

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.

Public function Const

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.
Take our survey
Dismiss