cocos2d-x  2.2.2
 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
 

Constant Groups

 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

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