Browse Source

add atan(x) and atan2(y,x)

PROP 65 1 year ago
parent
commit
0ddaeb7043
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/nuklear_internal.h

+ 6 - 0
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);