Epok Engine

EPOK RUNTIME

epok::sprite_detail::interior

Function · 1 overload

Function

Full Q12 frustum test without overflow for arbitrary script coordinates.

Belongs to
epok::sprite_detail
Header
sprite_math.hpp
Overloads
1

Declaration

Declaration
inline bool interior(int32_t x,int32_t y,int32_t z)

Full Q12 frustum test without overflow for arbitrary script coordinates.

ParameterTypeMeaning
xint32_tValue supplied for x. Keep referenced or pointed-to data valid for the complete call.
yint32_tValue supplied for y. Keep referenced or pointed-to data valid for the complete call.
zint32_tValue supplied for z. Keep referenced or pointed-to data valid for the complete call.

Returns: bool. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "sprite_math.hpp"

// Assume these named values have been initialized with valid data:
// int32_t x
// int32_t y
// int32_t z

auto result = epok::sprite_detail::interior(x, y, z);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations.

Declared in runtime/sprite_math.hpp:6

Related members