mirror of
https://github.com/Ed94/HandmadeHero.git
synced 2024-12-22 14:24:43 -08:00
24 lines
925 B
C
24 lines
925 B
C
#pragma once
|
|
|
|
# define EPSILON 1.19209290e-7f
|
|
# define ZERO 0.0f
|
|
# define ONE 1.0f
|
|
# define TWO_THIRDS 0.666666666666666666666666666666666666667f
|
|
|
|
# define TAU 6.28318530717958647692528676655900576f
|
|
# define PI 3.14159265358979323846264338327950288f
|
|
# define ONE_OVER_TAU 0.636619772367581343075535053490057448f
|
|
# define ONE_OVER_PI 0.159154943091895335768883763372514362f
|
|
|
|
# define TAU_OVER_2 3.14159265358979323846264338327950288f
|
|
# define TAU_OVER_4 1.570796326794896619231321691639751442f
|
|
# define TAU_OVER_8 0.785398163397448309615660845819875721f
|
|
|
|
# define E 2.71828182845904523536f
|
|
# define SQRT_TWO 1.41421356237309504880168872420969808f
|
|
# define SQRT_THREE 1.73205080756887729352744634150587236f
|
|
# define SQRT_FIVE 2.23606797749978969640917366873127623f
|
|
|
|
# define LOG_TWO 0.693147180559945309417232121458176568f
|
|
# define LOG_TEN 2.30258509299404568401799145468436421f
|