Epok Engine

EPOK RUNTIME

epok::lighting_detail::normalize

Function · 1 overload

Function

Performs `normalize` as part of the lighting module.

Belongs to
epok::lighting_detail
Header
lighting.hpp
Overloads
1

Declaration

Declaration
inline Vector normalize(Vector in)

Performs `normalize` as part of the lighting module.

ParameterTypeMeaning
inVectorValue supplied for in. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "lighting.hpp"

// Assume these named values have been initialized with valid data:
// Vector in

auto result = epok::lighting_detail::normalize(in);

Why use it

It provides direct, allocation-conscious access to the lighting 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/lighting.hpp:16

Related members