Epok Engine

EPOK RUNTIME

epok::timeline::sample

Function · 1 overload

Function

Same signed division toward zero and wide intermediate as bp::Timeline.

Belongs to
epok::timeline
Header
timeline.hpp
Overloads
1

Declaration

Declaration
inline int32_t sample(Curve curve, int32_t tick)

Same signed division toward zero and wide intermediate as bp::Timeline.

ParameterTypeMeaning
curveCurveValue supplied for curve. Keep referenced or pointed-to data valid for the complete call.
tickint32_tValue supplied for tick. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "timeline.hpp"

// Assume these named values have been initialized with valid data:
// Curve curve
// int32_t tick

auto result = epok::timeline::sample(curve, tick);

Why use it

It provides direct, allocation-conscious access to fixed-step simulation time and frame timing. 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/timeline.hpp:22

Related members