defocus-modules/include/defocus/df_math.h
2023-07-12 22:57:49 +02:00

29 lines
1.1 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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