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

Namespaces

 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::Vec2 point)
 hit test function More...
 
bool  (cocos2d::Sprite *sprite, cocos2d::Vec2 point, cocos2d::Vec2 &outPoint)
local  ( local sprite, local point, local outPoint)
cocos2d::Vec2  (float t, cocos2d::Vec2 &point1, cocos2d::Vec2 &point2, cocos2d::Vec2 &point3)
 motion curve function More...
 
cocos2d::Vec2  (float t, cocos2d::Vec2 &point1, cocos2d::Vec2 &point2, cocos2d::Vec2 &point3, cocos2d::Vec2 &point4)
var  ( var t, var point1, var point2, var point3, var point4)
local  ( local t, local point1, local point2, local point3, local point4)
cocos2d::Vec2  (float t, cocos2d::Vec2 &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)