Ark Server API (ASA) - Wiki
|
#include <IntPoint.h>
Public Types | |
using | IntType = InIntType |
Static Public Member Functions | |
static TIntPoint | DivideAndRoundUp (TIntPoint lhs, IntType Divisor) |
static TIntPoint | DivideAndRoundUp (TIntPoint lhs, TIntPoint Divisor) |
static TIntPoint | DivideAndRoundDown (TIntPoint lhs, IntType Divisor) |
static TIntPoint | DivideAndRoundDown (TIntPoint lhs, TIntPoint Divisor) |
static int32 | Num () |
Public Attributes | ||
union { | ||
struct { | ||
IntType X | ||
IntType Y | ||
} | ||
IntType XY [2] | ||
}; | ||
Static Public Attributes | |
static const TIntPoint | ZeroValue |
static const TIntPoint | NoneValue |
Friends | |
FArchive & | operator<< (FArchive &Ar, TIntPoint &Point) |
void | operator<< (FStructuredArchive::FSlot Slot, TIntPoint &Point) |
Structure for integer points in 2-d space.
Definition at line 22 of file IntPoint.h.
Definition at line 24 of file IntPoint.h.
|
default |
Default constructor (no initialization).
|
inline |
Create and initialize a new instance with the specified coordinates.
InX | The x-coordinate. |
InY | The y-coordinate. |
Definition at line 57 of file IntPoint.h.
|
inline |
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. |
Definition at line 69 of file IntPoint.h.
|
inlineexplicit |
Create and initialize a new instance to zero.
EForceInit | Force init enum |
Definition at line 80 of file IntPoint.h.
|
inlineexplicit |
Converts to another int type. Checks that the cast will succeed.
Definition at line 90 of file IntPoint.h.
|
inline |
Get the component-wise max of two points.
Definition at line 347 of file IntPoint.h.
|
inline |
Get the component-wise min of two points.
Definition at line 337 of file IntPoint.h.
|
inlinestatic |
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 434 of file IntPoint.h.
|
inlinestatic |
Definition at line 439 of file IntPoint.h.
|
inlinestatic |
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 416 of file IntPoint.h.
|
inlinestatic |
Definition at line 421 of file IntPoint.h.
|
inline |
Get the larger of the point's two components.
Definition at line 358 of file IntPoint.h.
|
inline |
Get the smaller of the point's two components.
Definition at line 369 of file IntPoint.h.
Get number of components point has.
Definition at line 449 of file IntPoint.h.
|
inline |
Compare two points for inequality.
Other | The other int point being compared. |
Definition at line 139 of file IntPoint.h.
|
inline |
Get specific component of a point.
PointIndex | Index of point component |
Definition at line 115 of file IntPoint.h.
|
inline |
Get specific component of a point.
PointIndex | Index of point component. |
Definition at line 102 of file IntPoint.h.
|
inline |
Get the result of multiplication on this point.
Other | The point to multiply with this point. |
Definition at line 292 of file IntPoint.h.
|
inline |
Get the result of scaling on this point.
Scale | What to multiply the point by. |
Definition at line 248 of file IntPoint.h.
|
inline |
Multiply another point component-wise from this point.
Other | The point to multiply with this point. |
Definition at line 192 of file IntPoint.h.
|
inline |
Scale this point.
Scale | What to multiply the point by. |
Definition at line 150 of file IntPoint.h.
|
inline |
Get the result of addition on this point.
Other | The other point to add to this. |
Definition at line 270 of file IntPoint.h.
|
inline |
Add another point component-wise to this point.
Other | The point to add to this point. |
Definition at line 178 of file IntPoint.h.
|
inline |
Get the result of subtraction from this point.
Other | The other point to subtract from this. |
Definition at line 281 of file IntPoint.h.
|
inline |
Subtract another point component-wise from this point.
Other | The point to subtract from this point. |
Definition at line 206 of file IntPoint.h.
|
inline |
Get the result of division on this point.
Other | The other point to subtract from this. |
Definition at line 303 of file IntPoint.h.
|
inline |
Get the result of division on this point.
Divisor | What to divide the point by. |
Definition at line 259 of file IntPoint.h.
|
inline |
Divide this point component-wise by another point.
Other | The point to divide with. |
Definition at line 220 of file IntPoint.h.
|
inline |
Divide this point by a scalar.
Divisor | What to divide the point by. |
Definition at line 164 of file IntPoint.h.
|
inline |
Assign another point to this one.
Other | The point to assign this point from. |
Definition at line 234 of file IntPoint.h.
|
inline |
Compare two points for equality.
Other | The other int point being compared. |
Definition at line 128 of file IntPoint.h.
|
inline |
Get specific component of the point.
Index | the index of point component |
Definition at line 314 of file IntPoint.h.
|
inline |
Get specific component of the point.
Index | the index of point component |
Definition at line 326 of file IntPoint.h.
|
inline |
Serialize the point.
Ar | The archive to serialize into. |
Definition at line 484 of file IntPoint.h.
Definition at line 569 of file IntPoint.h.
|
inline |
Get the distance of this point from (0,0).
Definition at line 380 of file IntPoint.h.
|
inline |
Get the squared distance of this point from (0,0).
Definition at line 393 of file IntPoint.h.
|
inline |
Get a textual representation of this point.
Definition at line 403 of file IntPoint.h.
|
inline |
Definition at line 506 of file IntPoint.h.
|
inline |
Definition at line 512 of file IntPoint.h.
|
inline |
Definition at line 518 of file IntPoint.h.
|
inline |
Definition at line 524 of file IntPoint.h.
|
inline |
Definition at line 530 of file IntPoint.h.
|
inline |
Definition at line 536 of file IntPoint.h.
|
inline |
Definition at line 542 of file IntPoint.h.
|
inline |
Definition at line 548 of file IntPoint.h.
Serialize the point.
Ar | The archive to serialize into. |
Point | The point to serialize. |
Definition at line 461 of file IntPoint.h.
|
friend |
Serialize the point.
Slot | The structured archive slot to serialize into. |
Point | The point to serialize. |
Definition at line 472 of file IntPoint.h.
union { ... } UE::Math::TIntPoint< InIntType > |
|
static |
An integer point with INDEX_NONE values.
Definition at line 46 of file IntPoint.h.
Holds the point's x-coordinate.
Definition at line 32 of file IntPoint.h.
IntType UE::Math::TIntPoint< InIntType >::XY[2] |
Definition at line 39 of file IntPoint.h.
Holds the point's y-coordinate.
Definition at line 35 of file IntPoint.h.
|
static |
An integer point with zeroed values.
Definition at line 43 of file IntPoint.h.