Ark Server API (ASE) - Wiki
|
#include <IntPoint.h>
Static Public Member Functions | |
static FIntPoint | DivideAndRoundUp (FIntPoint lhs, int32 Divisor) |
static FIntPoint | DivideAndRoundUp (FIntPoint lhs, FIntPoint Divisor) |
static FIntPoint | DivideAndRoundDown (FIntPoint lhs, int32 Divisor) |
static int32 | Num () |
Public Attributes | |
int32 | X |
int32 | Y |
Static Public Attributes | |
static const FIntPoint | ZeroValue |
static const FIntPoint | NoneValue |
Structure for integer points in 2-d space.
Definition at line 14 of file IntPoint.h.
FORCEINLINE FIntPoint::FIntPoint | ( | ) |
Default constructor (no initialization).
Definition at line 278 of file IntPoint.h.
Create and initialize a new instance with the specified coordinates.
InX | The x-coordinate. |
InY | The y-coordinate. |
Definition at line 281 of file IntPoint.h.
|
explicit |
Create and initialize a new instance to zero.
EForceInit | Force init enum |
Definition at line 287 of file IntPoint.h.
Get the component-wise max of two points.
Definition at line 409 of file IntPoint.h.
Get the component-wise min of two points.
Definition at line 403 of file IntPoint.h.
Divide an int point and round down the result.
lhs | The int point being divided. |
Divisor | What to divide the int point by. |
Definition at line 424 of file IntPoint.h.
Divide an int point and round up the result.
lhs | The int point being divided. |
Divisor | What to divide the int point by. |
Definition at line 414 of file IntPoint.h.
FORCEINLINE int32 FIntPoint::GetMax | ( | ) | const |
Get the larger of the point's two components.
Definition at line 448 of file IntPoint.h.
FORCEINLINE int32 FIntPoint::GetMin | ( | ) | const |
Get the smaller of the point's two components.
Definition at line 454 of file IntPoint.h.
|
static |
Get number of components point has.
Definition at line 305 of file IntPoint.h.
FORCEINLINE bool FIntPoint::operator!= | ( | const FIntPoint & | Other | ) | const |
Compare two points for inequality.
Other | The other int point being compared. |
Definition at line 317 of file IntPoint.h.
Get specific component of a point.
PointIndex | Index of point component |
Definition at line 299 of file IntPoint.h.
Get specific component of a point.
PointIndex | Index of point component. |
Definition at line 293 of file IntPoint.h.
Get the result of scaling on this point.
Scale | What to multiply the point by. |
Definition at line 377 of file IntPoint.h.
Scale this point.
Scale | What to multiply the point by. |
Definition at line 323 of file IntPoint.h.
Get the result of addition on this point.
Other | The other point to add to this. |
Definition at line 430 of file IntPoint.h.
Add another point component-wise to this point.
Other | The point to add to this point. |
Definition at line 341 of file IntPoint.h.
Get the result of subtraction from this point.
Other | The other point to subtract from this. |
Definition at line 436 of file IntPoint.h.
Subtract another point component-wise from this point.
Other | The point to subtract from this point. |
Definition at line 350 of file IntPoint.h.
Get the result of division on this point.
Other | The other point to subtract from this. |
Definition at line 442 of file IntPoint.h.
Get the result of division on this point.
Divisor | What to divide the point by. |
Definition at line 383 of file IntPoint.h.
Divide this point component-wise by another point.
Other | The point to divide with. |
Definition at line 359 of file IntPoint.h.
Divide this point by a scalar.
Divisor | What to divide the point by. |
Definition at line 332 of file IntPoint.h.
Assign another point to this one.
Other | The point to assign this point from. |
Definition at line 368 of file IntPoint.h.
FORCEINLINE bool FIntPoint::operator== | ( | const FIntPoint & | Other | ) | const |
Compare two points for equality.
Other | The other int point being compared. |
Definition at line 311 of file IntPoint.h.
Get specific component of the point.
Index | the index of point component |
Definition at line 389 of file IntPoint.h.
Get specific component of the point.
Index | the index of point component |
Definition at line 396 of file IntPoint.h.
FORCEINLINE int32 FIntPoint::Size | ( | ) | const |
Get the distance of this point from (0,0).
Definition at line 460 of file IntPoint.h.
FORCEINLINE int32 FIntPoint::SizeSquared | ( | ) | const |
Get the squared distance of this point from (0,0).
Definition at line 467 of file IntPoint.h.
FString FIntPoint::ToString | ( | ) | const |
Get a textual representation of this point.
|
static |
An integer point with INDEX_NONE values.
Definition at line 28 of file IntPoint.h.
int32 FIntPoint::X |
Holds the point's x-coordinate.
Definition at line 17 of file IntPoint.h.
int32 FIntPoint::Y |
Holds the point's y-coordinate.
Definition at line 20 of file IntPoint.h.
|
static |
An integer point with zeroed values.
Definition at line 25 of file IntPoint.h.