Epok Engine

EPOK RUNTIME

epok::transform2d_clamp

Function · 1 overload

Function

Clamps into the documented range instead of rejecting.

Belongs to
epok
Header
world2d.hpp
Overloads
1

Declaration

Declaration
inline void transform2d_clamp(Transform2D& transform)

Clamps into the documented range instead of rejecting.

ParameterTypeMeaning
transformTransform2D &Value supplied for transform. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "world2d.hpp"

// Assume these named values have been initialized with valid data:
// Transform2D & transform

epok::transform2d_clamp(transform);

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:60

Related members