5#ifndef CSENGINE_APP_MOREMATH_H
6#define CSENGINE_APP_MOREMATH_H
9#define M_PI 3.14159265358979323846
14static int sign(T val) {
15 return (T(0) < val) - (val < T(0));
19static constexpr T ValueSelect(T comparand, T valueGEZero, T valueLTZero) {
20 return comparand >= 0.f ? valueGEZero : valueLTZero;