Epok Engine

EPOK RUNTIME

epok::ordered_projection_anchor

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

Rebase Q8 operands on a 4096-Q8 (16-world-unit) lattice RELATIVE to the camera.

Belongs to
epok
Header
ordered_projection.hpp
Overloads
1

Declaration

template
Declaration
template<class Number> __attribute__((noinline,optimize("O3"))) __attribute__((noinline)) bool ordered_projection_anchor(const Affine<Number>& matrix,const int32_t* base_offset, const int32_t* center,int32_t* offset,int32_t* translation)

Rebase Q8 operands on a 4096-Q8 (16-world-unit) lattice RELATIVE to the camera.

ParameterTypeMeaning
matrixconst Affine<Number> &Not documented; consult the linked header.
base_offsetconst int32_t *Not documented; consult the linked header.
centerconst int32_t *Not documented; consult the linked header.
offsetint32_t *Not documented; consult the linked header.
translationint32_t *Not documented; consult the linked header.

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

Example sketch

C++ example
#include "ordered_projection.hpp"

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

// Assume these named values have been initialized with valid data:
// const Affine<Number> & matrix
// const int32_t * base_offset
// const int32_t * center
// int32_t * offset
// int32_t * translation

auto result = epok::ordered_projection_anchor<Number>(matrix, base_offset, center, offset, translation);

Trade-offs and warnings

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

Declared in runtime/ordered_projection.hpp:85

Related members