Epok Engine

EPOK RUNTIME

epok::world2d::depth_bucket_of

Function template · 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 template

The ordering-table bucket of a Depth2D: the bucket of its distance, or of its anchor's view depth when `anchor_depth(entity, z)` resolves one (Q12; false: no 3D position), moved by its bias.

Belongs to
epok::world2d
Header
world2d_service.hpp
Overloads
1

Declaration

template
Declaration
template<class AnchorDepth> inline int depth_bucket_of(const Depth2DComponent& depth, AnchorDepth&& anchor_depth)

The ordering-table bucket of a Depth2D: the bucket of its distance, or of its anchor's view depth when `anchor_depth(entity, z)` resolves one (Q12; false: no 3D position), moved by its bias.

ParameterTypeMeaning
depthconst Depth2DComponent &Not documented; consult the linked header.
anchor_depthAnchorDepth &&Not documented; consult the linked header.

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

Example sketch

C++ example
#include "world2d_service.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// AnchorDepth

// Assume these named values have been initialized with valid data:
// const Depth2DComponent & depth
// AnchorDepth && anchor_depth

epok::world2d& object = /* obtain a valid instance */;

auto result = object.depth_bucket_of<AnchorDepth>(depth, anchor_depth);

Trade-offs and warnings

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

Declared in runtime/world2d_service.hpp:1416

Related members