nishbox/engine/nb_math.h
2025-04-03 18:14:35 +09:00

23 lines
367 B
C

#ifndef __NB_MATH_H__
#define __NB_MATH_H__
#include <nb_pre.h>
#include <nb_macro.h>
/* Type */
#include <nb_type/math.h>
/* NishBox */
/* Standard */
#define NB_VECTOR_COPY(from, to) \
to[0] = from[0]; \
to[1] = from[1]; \
to[2] = from[2]
float nb_log2(float x);
nb_vector_t nb_calculate_normal(nb_vector_t v0, nb_vector_t v1, nb_vector_t v2);
#endif