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