engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 静态 Public 属性 | 友元 | 所有成员列表
FIntVector结构体 参考

Structure for integer vectors in 3-d space. 更多...

#include <IntVector.h>

Public 成员函数

 FIntVector ()
 Default constructor (no initialization).
 
FORCEINLINE FIntVector (EForceInit)
 Constructor 更多...
 
 FIntVector (FVector InVector)
 Constructor 更多...
 
 FIntVector (int32 InValue)
 Constructor 更多...
 
 FIntVector (int32 InX, int32 InY, int32 InZ)
 Creates and initializes a new instance with the specified coordinates. 更多...
 
int32 GetMax () const
 Gets the maximum value in the point. 更多...
 
int32 GetMin () const
 Gets the minimum value in the point. 更多...
 
bool IsZero () const
 Is vector equal to zero. 更多...
 
bool operator!= (const FIntVector &Other) const
 Compares points for inequality. 更多...
 
FIntVector operator& (int32 Val) const
 Component-wise AND. 更多...
 
int32 & operator() (int32 ComponentIndex)
 Gets specific component of a point. 更多...
 
const int32 & operator() (int32 ComponentIndex) const
 Gets specific component of a point. 更多...
 
FIntVector operator* (int32 Scale) const
 Gets the result of scaling on this point. 更多...
 
FIntVector & operator*= (int32 Scale)
 Scales this point. 更多...
 
FIntVector operator+ (const FIntVector &Other) const
 Gets the result of addition on this point. 更多...
 
FIntVector & operator+= (const FIntVector &Other)
 Adds to this point. 更多...
 
FIntVector operator- (const FIntVector &Other) const
 Gets the result of subtraction from this point. 更多...
 
FIntVector & operator-= (const FIntVector &Other)
 Subtracts from this point. 更多...
 
FIntVector operator/ (int32 Divisor) const
 Gets the result of division on this point. 更多...
 
FIntVector & operator/= (int32 Divisor)
 Divides this point. 更多...
 
FIntVector operator<< (int32 Shift) const
 Shifts all components to the left. 更多...
 
FIntVector & operator= (const FIntVector &Other)
 Assigns another point to this one. 更多...
 
bool operator== (const FIntVector &Other) const
 Compares points for equality. 更多...
 
FIntVector operator>> (int32 Shift) const
 Shifts all components to the right. 更多...
 
int32 & operator[] (int32 ComponentIndex)
 Gets specific component of a point. 更多...
 
const int32 & operator[] (int32 ComponentIndex) const
 Gets specific component of a point. 更多...
 
FIntVector operator^ (int32 Value) const
 Component-wise XOR. 更多...
 
FIntVector operator| (int32 Value) const
 Component-wise OR. 更多...
 
int32 Size () const
 Gets the distance of this point from (0,0,0). 更多...
 
FString ToString () const
 Get a textual representation of this vector. 更多...
 

静态 Public 成员函数

static FIntVector DivideAndRoundUp (FIntVector lhs, int32 Divisor)
 Divide an int point and round up the result. 更多...
 
static int32 Num ()
 Gets the number of components a point has. 更多...
 

Public 属性

int32 X
 Holds the point's x-coordinate.
 
int32 Y
 Holds the point's y-coordinate.
 
int32 Z
 Holds the point's z-coordinate.
 

静态 Public 属性

static CORE_API const FIntVector NoneValue
 An int point with INDEX_NONE values.
 
static CORE_API const FIntVector ZeroValue
 An int point with zeroed values.
 

友元

FArchive & operator<< (FArchive &Ar, FIntVector &Vector)
 Serializes the Rectangle. 更多...
 

详细描述

Structure for integer vectors in 3-d space.

构造及析构函数说明

◆ FIntVector() [1/4]

FORCEINLINE FIntVector::FIntVector ( int32  InX,
int32  InY,
int32  InZ 
)

Creates and initializes a new instance with the specified coordinates.

参数
InXThe x-coordinate.
InYThe y-coordinate.
InZThe z-coordinate.

◆ FIntVector() [2/4]

FORCEINLINE FIntVector::FIntVector ( int32  InValue)
explicit

Constructor

参数
InValuereplicated to all components

◆ FIntVector() [3/4]

FORCEINLINE FIntVector::FIntVector ( FVector  InVector)
explicit

Constructor

参数
InVectorfloat vector converted to int

◆ FIntVector() [4/4]

FORCEINLINE FIntVector::FIntVector ( EForceInit  )
explicit

Constructor

参数
EForceInitForce init enum

成员函数说明

◆ DivideAndRoundUp()

FORCEINLINE FIntVector FIntVector::DivideAndRoundUp ( FIntVector  lhs,
int32  Divisor 
)
static

Divide an int point and round up the result.

参数
lhsThe int point being divided.
DivisorWhat to divide the int point by.
返回
A new divided int point.

◆ GetMax()

FORCEINLINE int32 FIntVector::GetMax ( ) const

Gets the maximum value in the point.

返回
The maximum value in the point.

◆ GetMin()

FORCEINLINE int32 FIntVector::GetMin ( ) const

Gets the minimum value in the point.

返回
The minimum value in the point.

◆ IsZero()

FORCEINLINE bool FIntVector::IsZero ( ) const

Is vector equal to zero.

返回
is zero

◆ Num()

FORCEINLINE int32 FIntVector::Num ( )
static

Gets the number of components a point has.

返回
Number of components point has.

◆ operator!=()

FORCEINLINE bool FIntVector::operator!= ( const FIntVector &  Other) const

Compares points for inequality.

参数
OtherThe other int point being compared.
返回
true if the points are not equal, false otherwise..

◆ operator&()

FORCEINLINE FIntVector FIntVector::operator& ( int32  Val) const

Component-wise AND.

参数
ValueNumber to AND with the each component.
返回
A new shifted int point.

◆ operator()() [1/2]

FORCEINLINE int32 & FIntVector::operator() ( int32  ComponentIndex)

Gets specific component of a point.

参数
ComponentIndexIndex of point component.
返回
reference to component.

◆ operator()() [2/2]

FORCEINLINE const int32 & FIntVector::operator() ( int32  ComponentIndex) const

Gets specific component of a point.

参数
ComponentIndexIndex of point component.
返回
const reference to component.

◆ operator*()

FORCEINLINE FIntVector FIntVector::operator* ( int32  Scale) const

Gets the result of scaling on this point.

参数
ScaleWhat to multiply the point by.
返回
A new scaled int point.

◆ operator*=()

FORCEINLINE FIntVector & FIntVector::operator*= ( int32  Scale)

Scales this point.

参数
ScaleWhat to multiply the point by.
返回
Reference to this point after multiplication.

◆ operator+()

FORCEINLINE FIntVector FIntVector::operator+ ( const FIntVector &  Other) const

Gets the result of addition on this point.

参数
OtherThe other point to add to this.
返回
A new combined int point.

◆ operator+=()

FORCEINLINE FIntVector & FIntVector::operator+= ( const FIntVector &  Other)

Adds to this point.

参数
OtherThe point to add to this point.
返回
Reference to this point after addition.

◆ operator-()

FORCEINLINE FIntVector FIntVector::operator- ( const FIntVector &  Other) const

Gets the result of subtraction from this point.

参数
OtherThe other point to subtract from this.
返回
A new subtracted int point.

◆ operator-=()

FORCEINLINE FIntVector & FIntVector::operator-= ( const FIntVector &  Other)

Subtracts from this point.

参数
OtherThe point to subtract from this point.
返回
Reference to this point after subtraction.

◆ operator/()

FORCEINLINE FIntVector FIntVector::operator/ ( int32  Divisor) const

Gets the result of division on this point.

参数
DivisorWhat to divide the point by.
返回
A new divided int point.

◆ operator/=()

FORCEINLINE FIntVector & FIntVector::operator/= ( int32  Divisor)

Divides this point.

参数
DivisorWhat to divide the point by.
返回
Reference to this point after division.

◆ operator<<()

FORCEINLINE FIntVector FIntVector::operator<< ( int32  Shift) const

Shifts all components to the left.

参数
ShiftThe number of bits to shift.
返回
A new shifted int point.

◆ operator=()

FORCEINLINE FIntVector & FIntVector::operator= ( const FIntVector &  Other)

Assigns another point to this one.

参数
OtherThe point to assign this point from.
返回
Reference to this point after assignment.

◆ operator==()

FORCEINLINE bool FIntVector::operator== ( const FIntVector &  Other) const

Compares points for equality.

参数
OtherThe other int point being compared.
返回
true if the points are equal, false otherwise..

◆ operator>>()

FORCEINLINE FIntVector FIntVector::operator>> ( int32  Shift) const

Shifts all components to the right.

参数
ShiftThe number of bits to shift.
返回
A new shifted int point.

◆ operator[]() [1/2]

FORCEINLINE int32 & FIntVector::operator[] ( int32  ComponentIndex)

Gets specific component of a point.

参数
ComponentIndexIndex of point component.
返回
reference to component.

◆ operator[]() [2/2]

FORCEINLINE const int32 & FIntVector::operator[] ( int32  ComponentIndex) const

Gets specific component of a point.

参数
ComponentIndexIndex of point component.
返回
const reference to component.

◆ operator^()

FORCEINLINE FIntVector FIntVector::operator^ ( int32  Value) const

Component-wise XOR.

参数
ValueNumber to XOR with the each component.
返回
A new shifted int point.

◆ operator|()

FORCEINLINE FIntVector FIntVector::operator| ( int32  Value) const

Component-wise OR.

参数
ValueNumber to OR with the each component.
返回
A new shifted int point.

◆ Size()

FORCEINLINE int32 FIntVector::Size ( ) const

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

返回
The distance of this point from (0,0,0).

◆ ToString()

FORCEINLINE FString FIntVector::ToString ( ) const

Get a textual representation of this vector.

返回
A string describing the vector.

友元及相关函数文档

◆ operator<<

FArchive & operator<< ( FArchive &  Ar,
FIntVector &  Vector 
)
friend

Serializes the Rectangle.

参数
ArThe archive to serialize into.
VectorThe vector to serialize.
返回
Reference to the Archive after serialization.

该结构体的文档由以下文件生成: