ZFFramework
Loading...
Searching...
No Matches
ZFMath.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFMath_h_
7#define _ZFI_ZFMath_h_
8
9#include "ZFAlgorithmDef.h"
11
13inline zffloat zfm_PI(void) {
14 return 3.14159265359f;
15}
16
17inline zffloat zfm_E(void) {
18 return 2.71828182846f;
19}
20
23 , ZFMP_IN(zffloat, v)
24 , ZFMP_IN(zffloat, mod)
25 )
26
27
29 , ZFMP_IN(zffloat, x)
30 , ZFMP_IN(zffloat, y)
31 )
34 , ZFMP_IN(zffloat, v)
35 )
36
39 , ZFMP_IN(zffloat, v)
40 )
43 , ZFMP_IN(zffloat, v)
44 )
45
48 , ZFMP_IN(zffloat, v)
49 )
52 , ZFMP_IN(zffloat, v)
53 )
56 , ZFMP_IN(zffloat, v)
57 )
58
61 , ZFMP_IN(zffloat, y)
62 , ZFMP_IN(zffloat, x)
63 )
64
67 , ZFMP_IN(zffloat, v)
68 )
71 , ZFMP_IN(zffloat, v)
72 )
75 , ZFMP_IN(zffloat, v)
76 )
79 , ZFMP_IN(zffloat, v)
80 )
81
83#endif // #ifndef _ZFI_ZFMath_h_
84
global header for ZFAlgorithm module
#define ZFLIB_ZFAlgorithm
used to export symbols
Definition ZFAlgorithmDef.h:14
_zft_zffloat zffloat
same as float, see zfindex
Definition ZFCoreTypeDef_CoreType.h:183
zffloat zfm_atan(zffloat v)
math function wrapper
zffloat zfm_fmod(zffloat v, zffloat mod)
math function wrapper
zffloat zfm_log10(zffloat v)
math function wrapper
zffloat zfm_sin(zffloat v)
math function wrapper
zffloat zfm_E(void)
math function wrapper
Definition ZFMath.h:17
zffloat zfm_PI(void)
math function wrapper
Definition ZFMath.h:13
zffloat zfm_sqrt(zffloat v)
math function wrapper
zffloat zfm_acos(zffloat v)
math function wrapper
zffloat zfm_exp(zffloat v)
math function wrapper
zffloat zfm_asin(zffloat v)
math function wrapper
zffloat zfm_cos(zffloat v)
math function wrapper
zffloat zfm_log2(zffloat v)
math function wrapper
zffloat zfm_log(zffloat v)
math function wrapper
zffloat zfm_atan2(zffloat y, zffloat x)
math function wrapper
zffloat zfm_pow(zffloat x, zffloat y)
math function wrapper
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZFMETHOD_FUNC_DECLARE_1(ZFLIB_, ReturnType, MethodName, ZFMP_0)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:624
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98