Epok Engine

EPOK RUNTIME

epok::swept_bounds

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

Performs `swept bounds` as part of bounded AABB collision queries and movement.

Belongs to
epok
Header
collision.hpp
Overloads
1

Declaration

template
Declaration
template<class Number> inline AabbT<Number> swept_bounds(AabbT<Number> box,const Number* delta)

Performs `swept bounds` as part of bounded AABB collision queries and movement.

ParameterTypeMeaning
boxAabbT<Number>Not documented; consult the linked header.
deltaconst Number *Not documented; consult the linked header.

Returns: AabbT<Number>. Consult the linked header for its meaning.

Example sketch

C++ example
#include "collision.hpp"

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

// Assume these named values have been initialized with valid data:
// AabbT<Number> box
// const Number * delta

auto result = epok::swept_bounds<Number>(box, delta);

Trade-offs and warnings

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

Declared in runtime/collision.hpp:90

Related members