libnds
|
Position Test Functions. More...
Functions | |
static void | PosTest (v16 x, v16 y, v16 z) |
Performs a position test. | |
static void | PosTest_Asynch (v16 x, v16 y, v16 z) |
Starts a position test asynchronously. | |
static bool | PosTestBusy (void) |
Checks if a position test is being performed. | |
static int32_t | PosTestWresult (void) |
Returns the distance from the camera of the last position test. | |
static int32_t | PosTestXresult (void) |
Returns the absolute X position of the last position test (location if the modelview matrix was identity) | |
static int32_t | PosTestYresult (void) |
Returns the absolute Y position of the last position test (location if the modelview matrix was identity). | |
static int32_t | PosTestZresult (void) |
Returns the absolute Z position of the last position test (location if the modelview matrix was identity). | |
Position Test Functions.
The position test multiplies a given vector by the position matrix and returns the coords(x, y, z, w). The position test is really quick, about 10 times faster than a box test.
Performs a position test.
x | Specifies x offset from the current modelview matrix. |
y | Specifies y offset from the current modelview matrix. |
z | Specifies z offset from the current modelview matrix. |
Starts a position test asynchronously.
x | Specifies x offset from the current modelview matrix. |
y | Specifies y offset from the current modelview matrix. |
z | Specifies z offset from the current modelview matrix. |
|
inlinestatic |
Checks if a position test is being performed.
|
inlinestatic |
Returns the distance from the camera of the last position test.
|
inlinestatic |
Returns the absolute X position of the last position test (location if the modelview matrix was identity)
|
inlinestatic |
Returns the absolute Y position of the last position test (location if the modelview matrix was identity).
|
inlinestatic |
Returns the absolute Z position of the last position test (location if the modelview matrix was identity).