From 0ddaeb70438a76e16f59023e9cc71c813ce1e156 Mon Sep 17 00:00:00 2001 From: PROP 65 <132837123+PROP65@users.noreply.github.com> Date: Mon, 19 Aug 2024 01:00:05 +0000 Subject: [PATCH] add atan(x) and atan2(y,x) --- src/nuklear_internal.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/nuklear_internal.h b/src/nuklear_internal.h index e0de763..e945d74 100644 --- a/src/nuklear_internal.h +++ b/src/nuklear_internal.h @@ -103,6 +103,12 @@ NK_LIB float nk_sin(float x); #ifndef NK_COS NK_LIB float nk_cos(float x); #endif +#ifndef NK_ATAN +NK_LIB float nk_atan(float x); +#endif +#ifndef NK_ATAN2 +NK_LIB float nk_atan2(float y, float x); +#endif NK_LIB nk_uint nk_round_up_pow2(nk_uint v); NK_LIB struct nk_rect nk_shrink_rect(struct nk_rect r, float amount); NK_LIB struct nk_rect nk_pad_rect(struct nk_rect r, struct nk_vec2 pad);