cocos2d-x  3.0
CCUtilMath.h File Reference
`#include "CCSprite.h"`
`#include "cocostudio/CCArmatureDefine.h"`
`#include <math.h>`

cocostudio

cocostudio

## Macros

#define CC_DOUBLE_PI   (M_PI*2)
#define CC_HALF_PI   (M_PI * 0.5f)
#define CC_SPRITE_CONTAIN_POINT(sprite, point)   isSpriteContainPoint((sprite), (point))
#define CC_SPRITE_CONTAIN_POINT_WITH_RETURN(sprite, point, outPoint)   isSpriteContainPoint((sprite), (point), outPoint)

## Functions

bool  (cocos2d::Sprite *sprite, cocos2d::Point point)
hit test function More...

bool  (cocos2d::Sprite *sprite, cocos2d::Point point, cocos2d::Point &outPoint)
cocos2d::Point  (float t, cocos2d::Point &point1, cocos2d::Point &point2, cocos2d::Point &point3)
motion curve function More...

cocos2d::Point  (float t, cocos2d::Point &point1, cocos2d::Point &point2, cocos2d::Point &point3, cocos2d::Point &point4)
cocos2d::Point  (float t, cocos2d::Point &center, float radius, float fromRadian, float radianDif)
var  ( var t, var center, var radius, var fromRadian, var radianDif)
local  ( local t, local center, local radius, local fromRadian, local radianDif)

## Macro Definition Documentation

 #define CC_DOUBLE_PI   (M_PI*2)
 #define CC_HALF_PI   (M_PI * 0.5f)
 var CC_HALF_PI   (M_PI * 0.5f)
 local CC_HALF_PI   (M_PI * 0.5f)
 #define CC_SPRITE_CONTAIN_POINT ( sprite, point ) isSpriteContainPoint((sprite), (point))
 var CC_SPRITE_CONTAIN_POINT ( var, var ) isSpriteContainPoint((sprite), (point))
 local CC_SPRITE_CONTAIN_POINT ( local, local ) isSpriteContainPoint((sprite), (point))
 #define CC_SPRITE_CONTAIN_POINT_WITH_RETURN ( sprite, point, outPoint ) isSpriteContainPoint((sprite), (point), outPoint)
 var CC_SPRITE_CONTAIN_POINT_WITH_RETURN ( var, var, var ) isSpriteContainPoint((sprite), (point), outPoint)
 local CC_SPRITE_CONTAIN_POINT_WITH_RETURN ( local, local, local ) isSpriteContainPoint((sprite), (point), outPoint)