Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 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.
Starts start as part of the utility module.
bool start(Fixed a,Fixed b,Fixed seconds,Ease mode=Ease::Linear)Starts start as part of the utility module.
| Parameter | Type | Meaning |
|---|---|---|
a | Fixed | Not documented; consult the linked header. |
b | Fixed | Not documented; consult the linked header. |
seconds | Fixed | Not documented; consult the linked header. |
mode | Ease | Not documented; consult the linked header. |
Returns: bool. Consult the linked header for its meaning.
#include "utility.hpp"
// Assume these named values have been initialized with valid data:
// Fixed a
// Fixed b
// Fixed seconds
// Ease mode
epok::Tween& object = /* obtain a valid instance */;
auto result = object.start(a, b, seconds, mode);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/utility.hpp:56
advanceWhole completed legs are counted by one division, so a long delta cannot spin here and an unbounded ping-pong keeps the correct leg parity.MethodalphaThe eased interpolation parameter.MethodcancelPerforms `cancel` as part of the utility module.Methodcompletion_pendingPerforms `completion pending` as part of the utility module.Methodcycles_remainingPerforms `cycles remaining` as part of the utility module.Methoddelay_valuePerforms `delay value` as part of the utility module.Methodduration_valuePerforms `duration value` as part of the utility module.Methodease_kindPerforms `ease kind` as part of the utility module.Methodelapsed_valuePerforms `elapsed value` as part of the utility module.Methodend_valueEnds value as part of the utility module.Methodloop_modePerforms `loop mode` as part of the utility module.MethodplayingStarts ing as part of the utility module.Method