Epok Engine

EPOK RUNTIME

epok::frustum_outcode

Function · 1 overload

Function

Performs `frustum outcode` as part of the frustum module.

Belongs to
epok
Header
frustum.hpp
Overloads
1

Declaration

Declaration
inline uint8_t frustum_outcode(int32_t x,int32_t y,int32_t z)

Performs `frustum outcode` as part of the frustum module.

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: uint8_t. 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:
// int32_t x
// int32_t y
// int32_t z

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

Why use it

It provides direct, allocation-conscious access to the frustum module. No exception-based error path is implied by the signature.

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/frustum.hpp:50

Related members