Epok Engine

EPOK RUNTIME

epok::lerp

Function · 1 overload

Function

Performs `lerp` as part of the utility module.

Belongs to
epok
Header
utility.hpp
Overloads
1

Declaration

Declaration
inline Fixed lerp(Fixed a,Fixed b,Fixed t)

Performs `lerp` as part of the utility module.

ParameterTypeMeaning
aFixedValue supplied for a. Keep referenced or pointed-to data valid for the complete call.
bFixedValue supplied for b. Keep referenced or pointed-to data valid for the complete call.
tFixedValue supplied for t. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "utility.hpp"

// Assume these named values have been initialized with valid data:
// Fixed a
// Fixed b
// Fixed t

auto result = epok::lerp(a, b, t);

Why use it

It provides direct, allocation-conscious access to the utility 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/utility.hpp:4

Related members