Epok Engine

EPOK RUNTIME

epok::MotionInterpolation::local

Function template · 2 overloads

Function template

Camera inverse composition uses the same local translations as meshes.

Belongs to
epok
Header
motion_interpolation.hpp
Overloads
2

Declaration 1 of 2

const · template
Declaration
template<class Transform> Transform local(size_t i,const Transform& value) const

Camera inverse composition uses the same local translations as meshes.

ParameterTypeMeaning
isize_tValue supplied for i. Keep referenced or pointed-to data valid for the complete call.
valueconst Transform &Value supplied for value. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "motion_interpolation.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// Transform

// Assume these named values have been initialized with valid data:
// size_t i
// const Transform & value

epok::MotionInterpolation& object = /* obtain a valid instance */;

auto result = object.local<Transform>(i, value);

Why use it

The method is `const`, so it does not mutate the object through this API surface. Template dispatch is resolved at compile time and normally adds no runtime indirection.

Trade-offs and warnings

Every instantiated type must satisfy the header's compile-time requirements; extra instantiations can increase code size. 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/motion_interpolation.hpp:115

Declaration 2 of 2

const · template
Declaration
template<class Transform> Transform local(size_t,const Transform& value) const

Performs `local` as part of the motion interpolation module.

ParameterTypeMeaning
arg1size_tValue supplied for arg1. Keep referenced or pointed-to data valid for the complete call.
valueconst Transform &Value supplied for value. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "motion_interpolation.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// Transform

// Assume these named values have been initialized with valid data:
// size_t arg1
// const Transform & value

epok::MotionInterpolation& object = /* obtain a valid instance */;

auto result = object.local<Transform>(arg1, value);

Why use it

The method is `const`, so it does not mutate the object through this API surface. Template dispatch is resolved at compile time and normally adds no runtime indirection.

Trade-offs and warnings

Every instantiated type must satisfy the header's compile-time requirements; extra instantiations can increase code size. 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/motion_interpolation.hpp:18

Related members