Epok Engine

EPOK RUNTIME

epok::fixed_math::one

Variable

Variable

Exposes `one` on the `epok::fixed_math` namespace for shared Q12 integer math primitives.

Belongs to
epok::fixed_math
Header
fixed_math.hpp

Declaration

Declaration
const int32_t one

Exposes `one` on the `epok::fixed_math` namespace for shared Q12 integer math primitives.

Type
const int32_t
Storage
Namespace scope

Example

C++ example
#include "fixed_math.hpp"

auto value = epok::fixed_math::one;

When it helps

Use this member when you need direct access to the state represented by its declared type.

Trade-offs and warnings

Direct field access has no validation step. Keep the owning object alive, respect units and ranges, and do not mutate state while hardware or another subsystem is consuming it.

Declared in runtime/fixed_math.hpp:7