Epok Engine

EPOK RUNTIME

epok::chunk_fully_inside

Function · 1 overload

Function

Q12 bounds.

Belongs to
epok
Header
frustum.hpp
Overloads
1

Declaration

Declaration
inline bool chunk_fully_inside(const int32_t* center,const int32_t* extent,int32_t focal)

Q12 bounds.

ParameterTypeMeaning
centerconst int32_t *Value supplied for center. Keep referenced or pointed-to data valid for the complete call.
extentconst int32_t *Value supplied for extent. Keep referenced or pointed-to data valid for the complete call.
focalint32_tValue supplied for focal. 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 "frustum.hpp"

// Assume these named values have been initialized with valid data:
// const int32_t * center
// const int32_t * extent
// int32_t focal

auto result = epok::chunk_fully_inside(center, extent, focal);

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. Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/frustum.hpp:11

Related members