Golias Engine
A C++ 20 'game engine' built with SDL3 with wide platform support.
Namespaces | Functions
math.cpp File Reference
#include "core/math/math.h"
#include <glm/glm.hpp>
#include <glm/gtc/constants.hpp>
#include <cmath>

Namespaces

 math
 

Functions

float math::sin (float x)
 
float math::cos (float x)
 
float math::tan (float x)
 
float math::asin (float x)
 
float math::acos (float x)
 
float math::atan (float x)
 
float math::atan2 (float y, float x)
 
float math::sinh (float x)
 
float math::cosh (float x)
 
float math::tanh (float x)
 
float math::exp (float x)
 
float math::log (float x)
 
float math::log2 (float x)
 
float math::log10 (float x)
 
float math::pow (float base, float exp)
 
float math::sqrt (float x)
 
float math::cbrt (float x)
 
float math::floor (float x)
 
float math::ceil (float x)
 
float math::round (float x)
 
float math::trunc (float x)
 
float math::abs (float x)
 
int math::abs (int x)
 
float math::deg2rad (float degrees)
 
float math::rad2deg (float radians)
 
bool math::is_zero_approx (float x)
 
bool math::is_equal_approx (float a, float b)
 
float math::random (float min_val, float max_val)
 
int math::random (int min_val, int max_val)
 
float math::snap (float value, float step)