载入中...
搜索中...
未找到
Math.h 文件参考
#include <climits>
#include <cstdlib>

浏览源代码.

类

struct  eve::Rect
 Axis-aligned integer rectangle (screen/tile space). 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 

宏定义

#define EVE_M_E   2.71828182845904523536
 
#define EVE_M_LOG2E   1.44269504088896340736
 
#define EVE_M_LOG10E   0.434294481903251827651
 
#define EVE_M_LN2   0.693147180559945309417
 
#define EVE_M_LN10   2.30258509299404568402
 
#define EVE_M_PI   3.14159265358979323846
 
#define EVE_M_PI_2   1.57079632679489661923
 
#define EVE_M_PI_4   0.785398163397448309616
 
#define EVE_M_1_PI   0.318309886183790671538
 
#define EVE_M_2_PI   0.636619772367581343076
 
#define EVE_M_2_SQRTPI   1.12837916709551257390
 
#define EVE_M_SQRT2   1.41421356237309504880
 
#define EVE_M_SQRT1_2   0.707106781186547524401
 
#define EVE_M_TORAD   (float)(EVE_M_PI/180.0)
 
#define EVE_M_TODEG   (float)(180.0/EVE_M_PI)
 
#define EVE_TORAD(x)   (float)(x*EVE_M_TORAD)
 
#define EVE_TODEG(x)   (float)(x*EVE_M_TODEG)
 

宏定义说明

◆ EVE_M_1_PI

#define EVE_M_1_PI   0.318309886183790671538

在文件 Math.h 第 31 行定义.

◆ EVE_M_2_PI

#define EVE_M_2_PI   0.636619772367581343076

在文件 Math.h 第 32 行定义.

◆ EVE_M_2_SQRTPI

#define EVE_M_2_SQRTPI   1.12837916709551257390

在文件 Math.h 第 33 行定义.

◆ EVE_M_E

#define EVE_M_E   2.71828182845904523536

在文件 Math.h 第 23 行定义.

◆ EVE_M_LN10

#define EVE_M_LN10   2.30258509299404568402

在文件 Math.h 第 27 行定义.

◆ EVE_M_LN2

#define EVE_M_LN2   0.693147180559945309417

在文件 Math.h 第 26 行定义.

◆ EVE_M_LOG10E

#define EVE_M_LOG10E   0.434294481903251827651

在文件 Math.h 第 25 行定义.

◆ EVE_M_LOG2E

#define EVE_M_LOG2E   1.44269504088896340736

在文件 Math.h 第 24 行定义.

◆ EVE_M_PI

#define EVE_M_PI   3.14159265358979323846

在文件 Math.h 第 28 行定义.

◆ EVE_M_PI_2

#define EVE_M_PI_2   1.57079632679489661923

在文件 Math.h 第 29 行定义.

◆ EVE_M_PI_4

#define EVE_M_PI_4   0.785398163397448309616

在文件 Math.h 第 30 行定义.

◆ EVE_M_SQRT1_2

#define EVE_M_SQRT1_2   0.707106781186547524401

在文件 Math.h 第 35 行定义.

◆ EVE_M_SQRT2

#define EVE_M_SQRT2   1.41421356237309504880

在文件 Math.h 第 34 行定义.

◆ EVE_M_TODEG

#define EVE_M_TODEG   (float)(180.0/EVE_M_PI)

在文件 Math.h 第 37 行定义.

◆ EVE_M_TORAD

#define EVE_M_TORAD   (float)(EVE_M_PI/180.0)

在文件 Math.h 第 36 行定义.

◆ EVE_TODEG

#define EVE_TODEG (   x)    (float)(x*EVE_M_TODEG)

在文件 Math.h 第 39 行定义.

◆ EVE_TORAD

#define EVE_TORAD (   x)    (float)(x*EVE_M_TORAD)

在文件 Math.h 第 38 行定义.