Epok Engine

EPOK RUNTIME

epok::transform2d_valid

Function · 1 overload

Function

Documented validity of a Transform2D.

Belongs to
epok
Header
world2d.hpp
Overloads
1

Declaration

Declaration
inline bool transform2d_valid(const Transform2D& transform)

Documented validity of a Transform2D.

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

Returns: bool. 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 Transform2D & transform

auto result = epok::transform2d_valid(transform);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations. 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:51

Related members