defocus-modules/include/defocus/df_math.h

29 lines
1.1 KiB
C
Raw Normal View History

2023-07-12 22:57:49 +02:00
<EFBFBD><EFBFBD>#ifndef DEFOCUS_DF_MATH_H
#define DEFOCUS_DF_MATH_H
/* Math functions for the vector types defined in defocus.h
*
* Moved here because these are probably not really of interest to users.
*/
#include "defocus.h"
DF_API df_v3 df_normalize_v3(df_v3 v);
DF_API float df_len_v3(df_v3 v);
DF_API df_v3 df_cross(df_v3 a, df_v3 b);
DF_API df_v3 df_mul_v3(float s, df_v3 v);
DF_API df_v3 df_add_v3(df_v3 a, df_v3 b);
DF_API df_v3 df_sub_v3(df_v3 a, df_v3 b);
DF_API float df_dot_v3(df_v3 a, df_v3 b);
DF_API float df_len_v2(df_v2 v);
#endif