Epok Engine

EPOK RUNTIME

epok::UtilityLibrary::ease

Method · 1 overload

Method

The easing catalogue on its own, for curves applied to something that is not a tween.

Belongs to
epok::UtilityLibrary
Header
utility.hpp
Overloads
1

Declaration

static
Declaration
static Fixed ease(Fixed t,Ease easing)

The easing catalogue on its own, for curves applied to something that is not a tween.

ParameterTypeMeaning
tFixedValue supplied for t. Keep referenced or pointed-to data valid for the complete call.
easingEaseValue supplied for easing. 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 t
// Ease easing

auto result = epok::UtilityLibrary::ease(t, easing);

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:184

Related members