Structure for integer points in 2-d space. 更多...
#include <IntPoint.h>
Public 成员函数 | |
| FORCEINLINE FIntPoint | ComponentMax (const FIntPoint &Other) const |
| Get the component-wise max of two points. 更多... | |
| FORCEINLINE FIntPoint | ComponentMin (const FIntPoint &Other) const |
| Get the component-wise min of two points. 更多... | |
| FIntPoint () | |
| Default constructor (no initialization). | |
| FORCEINLINE | FIntPoint (EForceInit) |
| Create and initialize a new instance to zero. 更多... | |
| FIntPoint (int32 InX, int32 InY) | |
| Create and initialize a new instance with the specified coordinates. 更多... | |
| FIntPoint (int32 InXY) | |
| Create and initialize a new instance with a single int. 更多... | |
| int32 | GetMax () const |
| Get the larger of the point's two components. 更多... | |
| int32 | GetMin () const |
| Get the smaller of the point's two components. 更多... | |
| bool | operator!= (const FIntPoint &Other) const |
| Compare two points for inequality. 更多... | |
| int32 & | operator() (int32 PointIndex) |
| Get specific component of a point. 更多... | |
| const int32 & | operator() (int32 PointIndex) const |
| Get specific component of a point. 更多... | |
| FIntPoint | operator* (const FIntPoint &Other) const |
| Get the result of multiplication on this point. 更多... | |
| FIntPoint | operator* (int32 Scale) const |
| Get the result of scaling on this point. 更多... | |
| FIntPoint & | operator*= (const FIntPoint &Other) |
| Multiply another point component-wise from this point. 更多... | |
| FIntPoint & | operator*= (int32 Scale) |
| Scale this point. 更多... | |
| FIntPoint | operator+ (const FIntPoint &Other) const |
| Get the result of addition on this point. 更多... | |
| FIntPoint & | operator+= (const FIntPoint &Other) |
| Add another point component-wise to this point. 更多... | |
| FIntPoint | operator- (const FIntPoint &Other) const |
| Get the result of subtraction from this point. 更多... | |
| FIntPoint & | operator-= (const FIntPoint &Other) |
| Subtract another point component-wise from this point. 更多... | |
| FIntPoint | operator/ (const FIntPoint &Other) const |
| Get the result of division on this point. 更多... | |
| FIntPoint | operator/ (int32 Divisor) const |
| Get the result of division on this point. 更多... | |
| FIntPoint & | operator/= (const FIntPoint &Other) |
| Divide this point component-wise by another point. 更多... | |
| FIntPoint & | operator/= (int32 Divisor) |
| Divide this point by a scalar. 更多... | |
| FIntPoint & | operator= (const FIntPoint &Other) |
| Assign another point to this one. 更多... | |
| bool | operator== (const FIntPoint &Other) const |
| Compare two points for equality. 更多... | |
| int32 & | operator[] (int32 Index) |
| Get specific component of the point. 更多... | |
| int32 | operator[] (int32 Index) const |
| Get specific component of the point. 更多... | |
| bool | Serialize (FArchive &Ar) |
| Serialize the point. 更多... | |
| bool | Serialize (FStructuredArchive::FSlot Slot) |
| Serialize the point. 更多... | |
| int32 | Size () const |
| Get the distance of this point from (0,0). 更多... | |
| int32 | SizeSquared () const |
| Get the squared distance of this point from (0,0). 更多... | |
| FString | ToString () const |
| Get a textual representation of this point. 更多... | |
静态 Public 成员函数 | |
| static FIntPoint | DivideAndRoundDown (FIntPoint lhs, int32 Divisor) |
| Divide an int point and round down the result. 更多... | |
| static FIntPoint | DivideAndRoundUp (FIntPoint lhs, int32 Divisor) |
| Divide an int point and round up the result. 更多... | |
| static int32 | Num () |
| Get number of components point has. 更多... | |
Public 属性 | |
| int32 | X |
| Holds the point's x-coordinate. | |
| int32 | Y |
| Holds the point's y-coordinate. | |
静态 Public 属性 | |
| static CORE_API const FIntPoint | NoneValue |
| An integer point with INDEX_NONE values. | |
| static CORE_API const FIntPoint | ZeroValue |
| An integer point with zeroed values. | |
友元 | |
| FArchive & | operator<< (FArchive &Ar, FIntPoint &Point) |
| Serialize the point. 更多... | |
| void | operator<< (FStructuredArchive::FSlot Slot, FIntPoint &Point) |
| Serialize the point. 更多... | |
Structure for integer points in 2-d space.
| FORCEINLINE FIntPoint::FIntPoint | ( | int32 | InX, |
| int32 | InY | ||
| ) |
Create and initialize a new instance with the specified coordinates.
| InX | The x-coordinate. |
| InY | The y-coordinate. |
| FORCEINLINE FIntPoint::FIntPoint | ( | int32 | InXY | ) |
Create and initialize a new instance with a single int.
Both X and Y will be initialized to this value
| InXY | The x and y-coordinate. |
|
explicit |
Create and initialize a new instance to zero.
| EForceInit | Force init enum |
Get the component-wise max of two points.
Get the component-wise min of two points.
Divide an int point and round down the result.
| lhs | The int point being divided. |
| Divisor | What to divide the int point by. |
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 FIntPoint::GetMax | ( | ) | const |
Get the larger of the point's two components.
| FORCEINLINE int32 FIntPoint::GetMin | ( | ) | const |
Get the smaller of the point's two components.
|
static |
Get number of components point has.
| FORCEINLINE bool FIntPoint::operator!= | ( | const FIntPoint & | Other | ) | const |
Compare two points for inequality.
| Other | The other int point being compared. |
| FORCEINLINE int32 & FIntPoint::operator() | ( | int32 | PointIndex | ) |
Get specific component of a point.
| PointIndex | Index of point component |
| FORCEINLINE const int32 & FIntPoint::operator() | ( | int32 | PointIndex | ) | const |
Get specific component of a point.
| PointIndex | Index of point component. |
Get the result of multiplication on this point.
| Other | The point to multiply with this point. |
| FORCEINLINE FIntPoint FIntPoint::operator* | ( | int32 | Scale | ) | const |
Get the result of scaling on this point.
| Scale | What to multiply the point by. |
Multiply another point component-wise from this point.
| Other | The point to multiply with this point. |
| FORCEINLINE FIntPoint & FIntPoint::operator*= | ( | int32 | Scale | ) |
Scale this point.
| Scale | What to multiply the point by. |
Get the result of addition on this point.
| Other | The other point to add to this. |
Add another point component-wise to this point.
| Other | The point to add to this point. |
Get the result of subtraction from this point.
| Other | The other point to subtract from this. |
Subtract another point component-wise from this point.
| Other | The point to subtract from this point. |
Get the result of division on this point.
| Other | The other point to subtract from this. |
| FORCEINLINE FIntPoint FIntPoint::operator/ | ( | int32 | Divisor | ) | const |
Get the result of division on this point.
| Divisor | What to divide the point by. |
Divide this point component-wise by another point.
| Other | The point to divide with. |
| FORCEINLINE FIntPoint & FIntPoint::operator/= | ( | int32 | Divisor | ) |
Divide this point by a scalar.
| Divisor | What to divide the point by. |
Assign another point to this one.
| Other | The point to assign this point from. |
| FORCEINLINE bool FIntPoint::operator== | ( | const FIntPoint & | Other | ) | const |
Compare two points for equality.
| Other | The other int point being compared. |
| FORCEINLINE int32 & FIntPoint::operator[] | ( | int32 | Index | ) |
Get specific component of the point.
| Index | the index of point component |
| FORCEINLINE int32 FIntPoint::operator[] | ( | int32 | Index | ) | const |
Get specific component of the point.
| Index | the index of point component |
|
inline |
Serialize the point.
| Ar | The archive to serialize into. |
|
inline |
Serialize the point.
| Slot | The structured archive slot to serialize into. |
| FORCEINLINE int32 FIntPoint::Size | ( | ) | const |
Get the distance of this point from (0,0).
| FORCEINLINE int32 FIntPoint::SizeSquared | ( | ) | const |
| FORCEINLINE FString FIntPoint::ToString | ( | ) | const |
Get a textual representation of this point.
Serialize the point.
| Ar | The archive to serialize into. |
| Point | The point to serialize. |
|
friend |
Serialize the point.
| Slot | The structured archive slot to serialize into. |
| Point | The point to serialize. |