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.
World position at `distance` along the path.
Fixed sample_x(Fixed distance) constWorld position at `distance` along the path.
| Parameter | Type | Meaning |
|---|---|---|
distance | Fixed | Not documented; consult the linked header. |
Returns: Fixed. Consult the linked header for its meaning.
#include "world2d_content.hpp"
// Assume these named values have been initialized with valid data:
// Fixed distance
epok::Path2DComponent& object = /* obtain a valid instance */;
auto result = object.sample_x(distance);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_content.hpp:154
~Path2DComponentReleases the resources owned by `epok::Path2DComponent`.destructorclass_idPerforms `class id` as part of the world2d content module.Methodget_lengthReturns length as part of the world2d content module.Methodlevel_attachedPerforms `level attached` as part of the world2d content module.Methodsample_localThe local point and unit direction at `distance` along the path, clamped (or wrapped, for a closed path) to its length.Methodsample_yPerforms `sample y` as part of the world2d content module.Method