Epok Engine

EPOK RUNTIME

epok::character2d::normalized_up

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

Performs `normalized up` as part of pixel-unit character commands and derivable actors over the existing 2D body solver.

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

Declaration

Declaration
inline bool normalized_up(Fixed x,Fixed y)

Performs `normalized up` as part of pixel-unit character commands and derivable actors over the existing 2D body solver.

ParameterTypeMeaning
xFixedNot documented; consult the linked header.
yFixedNot documented; consult the linked header.

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

Example sketch

C++ example
#include "character2d.hpp"

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

auto result = epok::character2d::normalized_up(x, y);

Trade-offs and warnings

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

Declared in runtime/character2d.hpp:21

Related members