13 lines
180 B
C
13 lines
180 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "math.h"
|
|
|
|
static const float epsilon = 0.00001;
|
|
|
|
inline static bool float_equal(float a, float b)
|
|
{
|
|
return fabsf(a - b) < epsilon;
|
|
}
|