cocos2d-x  3.0-alpha0
 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
 Add deprecated global functions and variables here.
 
 cocos2d::extension
 
 cocos2d::extension::armature
 

Constant Groups

 cocos2d
 Add deprecated global functions and variables here.
 
 cocos2d::extension
 
 cocos2d::extension::armature
 

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

Macro Definition Documentation

#define CC_DOUBLE_PI   (M_PI*2)
var CC_DOUBLE_PI   (M_PI*2)
local 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)