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.
| FORCEINLINE FIntVector::FIntVector | ( | int32 | InX, |
| int32 | InY, | ||
| int32 | InZ | ||
| ) |
Creates and initializes a new instance with the specified coordinates.
| InX | The x-coordinate. |
| InY | The y-coordinate. |
| InZ | The z-coordinate. |
|
explicit |
Constructor
| InValue | replicated to all components |
|
explicit |
Constructor
| InVector | float vector converted to int |
|
explicit |
Constructor
| EForceInit | Force init enum |
|
static |
Divide an int point and round up the result.
| lhs | The int point being divided. |
| Divisor | What to divide the int point by. |
| FORCEINLINE int32 FIntVector::GetMax | ( | ) | const |
Gets the maximum value in the point.
| FORCEINLINE int32 FIntVector::GetMin | ( | ) | const |
Gets the minimum value in the point.
| FORCEINLINE bool FIntVector::IsZero | ( | ) | const |
Is vector equal to zero.
|
static |
Gets the number of components a point has.
| FORCEINLINE bool FIntVector::operator!= | ( | const FIntVector & | Other | ) | const |
Compares points for inequality.
| Other | The other int point being compared. |
| FORCEINLINE FIntVector FIntVector::operator& | ( | int32 | Val | ) | const |
Component-wise AND.
| Value | Number to AND with the each component. |
| FORCEINLINE int32 & FIntVector::operator() | ( | int32 | ComponentIndex | ) |
Gets specific component of a point.
| ComponentIndex | Index of point component. |
| FORCEINLINE const int32 & FIntVector::operator() | ( | int32 | ComponentIndex | ) | const |
Gets specific component of a point.
| ComponentIndex | Index of point component. |
| FORCEINLINE FIntVector FIntVector::operator* | ( | int32 | Scale | ) | const |
Gets the result of scaling on this point.
| Scale | What to multiply the point by. |
| FORCEINLINE FIntVector & FIntVector::operator*= | ( | int32 | Scale | ) |
Scales this point.
| Scale | What to multiply the point by. |
| FORCEINLINE FIntVector FIntVector::operator+ | ( | const FIntVector & | Other | ) | const |
Gets the result of addition on this point.
| Other | The other point to add to this. |
| FORCEINLINE FIntVector & FIntVector::operator+= | ( | const FIntVector & | Other | ) |
Adds to this point.
| Other | The point to add to this point. |
| FORCEINLINE FIntVector FIntVector::operator- | ( | const FIntVector & | Other | ) | const |
Gets the result of subtraction from this point.
| Other | The other point to subtract from this. |
| FORCEINLINE FIntVector & FIntVector::operator-= | ( | const FIntVector & | Other | ) |
Subtracts from this point.
| Other | The point to subtract from this point. |
| FORCEINLINE FIntVector FIntVector::operator/ | ( | int32 | Divisor | ) | const |
Gets the result of division on this point.
| Divisor | What to divide the point by. |
| FORCEINLINE FIntVector & FIntVector::operator/= | ( | int32 | Divisor | ) |
Divides this point.
| Divisor | What to divide the point by. |
| FORCEINLINE FIntVector FIntVector::operator<< | ( | int32 | Shift | ) | const |
Shifts all components to the left.
| Shift | The number of bits to shift. |
| FORCEINLINE FIntVector & FIntVector::operator= | ( | const FIntVector & | Other | ) |
Assigns another point to this one.
| Other | The point to assign this point from. |
| FORCEINLINE bool FIntVector::operator== | ( | const FIntVector & | Other | ) | const |
Compares points for equality.
| Other | The other int point being compared. |
| FORCEINLINE FIntVector FIntVector::operator>> | ( | int32 | Shift | ) | const |
Shifts all components to the right.
| Shift | The number of bits to shift. |
| FORCEINLINE int32 & FIntVector::operator[] | ( | int32 | ComponentIndex | ) |
Gets specific component of a point.
| ComponentIndex | Index of point component. |
| FORCEINLINE const int32 & FIntVector::operator[] | ( | int32 | ComponentIndex | ) | const |
Gets specific component of a point.
| ComponentIndex | Index of point component. |
| FORCEINLINE FIntVector FIntVector::operator^ | ( | int32 | Value | ) | const |
Component-wise XOR.
| Value | Number to XOR with the each component. |
| FORCEINLINE FIntVector FIntVector::operator| | ( | int32 | Value | ) | const |
Component-wise OR.
| Value | Number to OR with the each component. |
| FORCEINLINE int32 FIntVector::Size | ( | ) | const |
Gets the distance of this point from (0,0,0).
| FORCEINLINE FString FIntVector::ToString | ( | ) | const |
Get a textual representation of this vector.
|
friend |
Serializes the Rectangle.
| Ar | The archive to serialize into. |
| Vector | The vector to serialize. |