sKit  0.0.9
math.hpp File Reference
#include <glm/mat4x4.hpp>

Go to the source code of this file.

Namespaces

 sKit
 
 sKit::math
 Functions for math.
 

Functions

auto sKit::math::map (float value, float inputMin, float inputMax, float outputMin, float outputMax, bool clamp=true) -> float
 Given a value and an input range, map the value to an output range. More...
 
auto sKit::math::flatten (const glm::mat4 &mat) -> std::array< float, 16 >
 flattens a 4x4 matrix with row major order More...