Epok Engine

EPOK RUNTIME

epok::skeletal_detail::aim_pitch_matrix

Function · 1 overload

Function

A small-angle quaternion approximation keeps additive aiming deterministic on host and MIPS without introducing a per-character trigonometry service.

Belongs to
epok::skeletal_detail
Header
skeletal.hpp
Overloads
1

Declaration

Declaration
inline Affine<Fixed> aim_pitch_matrix(Fixed degrees)

A small-angle quaternion approximation keeps additive aiming deterministic on host and MIPS without introducing a per-character trigonometry service.

ParameterTypeMeaning
degreesFixedValue supplied for degrees. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "skeletal.hpp"

// Assume these named values have been initialized with valid data:
// Fixed degrees

auto result = epok::skeletal_detail::aim_pitch_matrix(degrees);

Why use it

It provides direct, allocation-conscious access to rigid skeletal animation and pose evaluation. 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/skeletal.hpp:45

Related members