Epok Engine

EPOK RUNTIME

epok::hud_core::turn_units

Function · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function

Degrees to 1/2048 of a turn, rounded once per rotated node rather than per primitive.

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

Declaration

Declaration
inline int turn_units(Fixed degrees)

Degrees to 1/2048 of a turn, rounded once per rotated node rather than per primitive.

ParameterTypeMeaning
degreesFixedNot documented; consult the linked header.

Returns: int. Consult the linked header for its meaning.

Example sketch

C++ example
#include "hud_core.hpp"

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

auto result = epok::hud_core::turn_units(degrees);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/hud_core.hpp:83

Related members