cocos2d-x  2.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCUtilMath.h File Reference
#include "CCArmatureDefine.h"
#include <math.h>

Namespaces

 cocos2d
 
 cocos2d::extension
 

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

CC_EX_DLL bool  (CCSprite *sprite, CCPoint point)
 hit test function More...
 
local  ( local sprite, local point)
 hit test function More...
 
CC_EX_DLL bool  (CCSprite *sprite, CCPoint point, CCPoint &outPoint)
local  ( local sprite, local point, local outPoint)
CC_EX_DLL CCPoint  (float t, CCPoint &point1, CCPoint &point2, CCPoint &point3)
 motion curve function More...
 
local  ( local t, local point1, local point2, local point3)
 motion curve function More...
 
CC_EX_DLL CCPoint  (float t, CCPoint &point1, CCPoint &point2, CCPoint &point3, CCPoint &point4)
CC_EX_DLL CCPoint  (float t, CCPoint &center, float radius, float fromRadian, float 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)