cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCMathBase.h File Reference
#include <memory>
#include <string.h>
#include "platform/CCPlatformMacros.h"

Macros

#define MATH_DEG_TO_RAD(x)   ((x) * 0.0174532925f)
 Util macro for conversion from degrees to radians. More...
 
#define MATH_RAD_TO_DEG(x)   ((x)* 57.29577951f)
 Util macro for conversion from radians to degrees. More...
 
#define NS_CC_MATH_BEGIN
#define NS_CC_MATH_END
#define USING_NS_CC_MATH
#define MATH_FLOAT_SMALL   1.0e-37f
 Util macro for const float such as epsilon, small float and float precision tolerance. More...
 
#define MATH_TOLERANCE   2e-37f
#define MATH_PIOVER2   1.57079632679489661923f
#define MATH_EPSILON   0.000001f

Macro Definition Documentation

#define MATH_DEG_TO_RAD (   x)    ((x) * 0.0174532925f)

Util macro for conversion from degrees to radians.

#define MATH_EPSILON   0.000001f
var MATH_EPSILON   0.000001f
local MATH_EPSILON   0.000001f
#define MATH_FLOAT_SMALL   1.0e-37f

Util macro for const float such as epsilon, small float and float precision tolerance.

var MATH_FLOAT_SMALL   1.0e-37f

Util macro for const float such as epsilon, small float and float precision tolerance.

local MATH_FLOAT_SMALL   1.0e-37f

Util macro for const float such as epsilon, small float and float precision tolerance.

#define MATH_PIOVER2   1.57079632679489661923f
#define MATH_RAD_TO_DEG (   x)    ((x)* 57.29577951f)

Util macro for conversion from radians to degrees.

var MATH_RAD_TO_DEG (   var)    ((x)* 57.29577951f)

Util macro for conversion from radians to degrees.

local MATH_RAD_TO_DEG (   local)    ((x)* 57.29577951f)

Util macro for conversion from radians to degrees.

#define MATH_TOLERANCE   2e-37f
#define NS_CC_MATH_BEGIN
var NS_CC_MATH_BEGIN
local NS_CC_MATH_BEGIN
#define NS_CC_MATH_END
#define USING_NS_CC_MATH
var USING_NS_CC_MATH
local USING_NS_CC_MATH