Epok Engine

EPOK RUNTIME

epok::MathLibrary::add

Method · 1 overload

Method

Adds add as part of the gameplay api module.

Belongs to
epok::MathLibrary
Header
gameplay_api.hpp
Overloads
1

Declaration

static
Declaration
static GameplayVector3 add(GameplayVector3 a,GameplayVector3 b)

Adds add as part of the gameplay api module.

ParameterTypeMeaning
aGameplayVector3Value supplied for a. Keep referenced or pointed-to data valid for the complete call.
bGameplayVector3Value supplied for b. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "gameplay_api.hpp"

// Assume these named values have been initialized with valid data:
// GameplayVector3 a
// GameplayVector3 b

auto result = epok::MathLibrary::add(a, b);

Why use it

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

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/gameplay_api.hpp:175

Related members