Epok Engine

EPOK RUNTIME

epok::sin_degrees

Function · 1 overload

Function

Sine of an angle in degrees.

Belongs to
epok
Header
world2d.hpp
Overloads
1

Declaration

Declaration
inline Fixed sin_degrees(Fixed degrees)

Sine of an angle in degrees.

ParameterTypeMeaning
degreesFixedValue supplied for degrees. Keep referenced or pointed-to data valid for the complete call.

Returns: Fixed. 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:
// Fixed degrees

auto result = epok::sin_degrees(degrees);

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

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

Declared in runtime/world2d.hpp:120

Related members