Epok Engine

EPOK RUNTIME

epok::compose

Function · 1 overload

Function

parent * child: the child's local matrix expressed in the parent's space.

Belongs to
epok
Header
world2d.hpp
Overloads
1

Declaration

Declaration
inline Affine2D compose(const Affine2D& parent, const Affine2D& child)

parent * child: the child's local matrix expressed in the parent's space.

ParameterTypeMeaning
parentconst Affine2D &Value supplied for parent. Keep referenced or pointed-to data valid for the complete call.
childconst Affine2D &Value supplied for child. Keep referenced or pointed-to data valid for the complete call.

Returns: Affine2D. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "world2d.hpp"

// Assume these named values have been initialized with valid data:
// const Affine2D & parent
// const Affine2D & child

auto result = epok::compose(parent, child);

Why use it

It provides direct, allocation-conscious access to the world2d module. No exception-based error path is implied by the signature.

Trade-offs and warnings

Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/world2d.hpp:156

Related members