shithub: pt2-clone

ref: 1e0ed4cfef0787d6d538e72cf587e4bf5e8d1da2
dir: /src/pt2_math.h/

View raw version
#pragma once

#include <stdint.h>
#include <stdbool.h>

// adding this prevents denormalized numbers, which is slow
#define DENORMAL_OFFSET 1e-20

#define PT2_PI 3.14159265358979323846264338327950288
#define PT2_TWO_PI 6.28318530717958647692528676655900576

double pt2_sqrt(double x);
double pt2_tan(double x);
double pt2_cos(double x);
double pt2_sin(double x);