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

浏览源代码.

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

命名空间

namespace  eve
 

宏定义

#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.h31 行定义.

◆ EVE_M_2_PI

#define EVE_M_2_PI   0.636619772367581343076

在文件 Math.h32 行定义.

◆ EVE_M_2_SQRTPI

#define EVE_M_2_SQRTPI   1.12837916709551257390

在文件 Math.h33 行定义.

◆ EVE_M_E

#define EVE_M_E   2.71828182845904523536

在文件 Math.h23 行定义.

◆ EVE_M_LN10

#define EVE_M_LN10   2.30258509299404568402

在文件 Math.h27 行定义.

◆ EVE_M_LN2

#define EVE_M_LN2   0.693147180559945309417

在文件 Math.h26 行定义.

◆ EVE_M_LOG10E

#define EVE_M_LOG10E   0.434294481903251827651

在文件 Math.h25 行定义.

◆ EVE_M_LOG2E

#define EVE_M_LOG2E   1.44269504088896340736

在文件 Math.h24 行定义.

◆ EVE_M_PI

#define EVE_M_PI   3.14159265358979323846

在文件 Math.h28 行定义.

◆ EVE_M_PI_2

#define EVE_M_PI_2   1.57079632679489661923

在文件 Math.h29 行定义.

◆ EVE_M_PI_4

#define EVE_M_PI_4   0.785398163397448309616

在文件 Math.h30 行定义.

◆ EVE_M_SQRT1_2

#define EVE_M_SQRT1_2   0.707106781186547524401

在文件 Math.h35 行定义.

◆ EVE_M_SQRT2

#define EVE_M_SQRT2   1.41421356237309504880

在文件 Math.h34 行定义.

◆ EVE_M_TODEG

#define EVE_M_TODEG   (float)(180.0/EVE_M_PI)

在文件 Math.h37 行定义.

◆ EVE_M_TORAD

#define EVE_M_TORAD   (float)(EVE_M_PI/180.0)

在文件 Math.h36 行定义.

◆ EVE_TODEG

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

在文件 Math.h39 行定义.

◆ EVE_TORAD

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

在文件 Math.h38 行定义.