Kore 3
Loading...
Searching...
No Matches
core.h
Go to the documentation of this file.
1#ifndef KORE_MATH_CORE_HEADER
2#define KORE_MATH_CORE_HEADER
3
4#include <kore3/global.h>
5
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#define KORE_PI 3.141592654
15#define KORE_TAU 6.283185307
16
17KORE_FUNC float kore_cot(float x);
18KORE_FUNC float kore_round(float value);
19KORE_FUNC float kore_abs(float value);
20KORE_FUNC float kore_min(float a, float b);
21KORE_FUNC float kore_max(float a, float b);
22KORE_FUNC int kore_mini(int a, int b);
23KORE_FUNC int kore_maxi(int a, int b);
24KORE_FUNC float kore_clamp(float value, float minValue, float maxValue);
25
26#ifdef __cplusplus
27}
28#endif
29
30#endif
Provides basic functionality that's used all over the place. There's usually no need to manually incl...