Epok Engine

EPOK RUNTIME

epok::collision_fraction24

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

Exact Q24 fraction for 0 <= numerator <= denominator.

Belongs to
epok
Header
collision.hpp
Overloads
1

Declaration

Declaration
inline int64_t collision_fraction24(uint64_t numerator,uint64_t denominator)

Exact Q24 fraction for 0 <= numerator <= denominator.

ParameterTypeMeaning
numeratoruint64_tNot documented; consult the linked header.
denominatoruint64_tNot documented; consult the linked header.

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

Example sketch

C++ example
#include "collision.hpp"

// Assume these named values have been initialized with valid data:
// uint64_t numerator
// uint64_t denominator

auto result = epok::collision_fraction24(numerator, denominator);

Trade-offs and warnings

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

Declared in runtime/collision.hpp:23

Related members