mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 20:24:39 +00:00
23 lines
367 B
C
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
|