Epok Engine

EPOK RUNTIME

epok::hud_core::rotation_about

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

T(pivot) * R(degrees) * T(-pivot).

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

Declaration

Declaration
inline Affine2 rotation_about(Fixed x,Fixed y,Fixed degrees)

T(pivot) * R(degrees) * T(-pivot).

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

Returns: Affine2. 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 x
// Fixed y
// Fixed degrees

auto result = epok::hud_core::rotation_about(x, y, degrees);

Trade-offs and warnings

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

Declared in runtime/hud_core.hpp:92

Related members