Add Math.tan

This commit is contained in:
kichikuou
2023-07-03 08:39:42 +09:00
parent 1855cd4167
commit 1694f5cb89
+6
View File
@@ -59,6 +59,11 @@ static float Math_Sin(float x)
return sinf(deg2rad(x));
}
static float Math_Tan(float x)
{
return tanf(deg2rad(x));
}
static void Math_SetSeedByCurrentTime(void)
{
srand(time(NULL));
@@ -180,6 +185,7 @@ static bool Math_BezierCurve(struct page **x_array, struct page **y_array, int n
HLL_LIBRARY(Math,
HLL_EXPORT(Cos, Math_Cos),
HLL_EXPORT(Sin, Math_Sin),
HLL_EXPORT(Tan, Math_Tan),
HLL_EXPORT(Sqrt, sqrtf),
HLL_EXPORT(Atan, atanf),
HLL_EXPORT(Atan2, atan2f),