|
static Vec2 | cpv2point (const cpVect &vec) |
| Make cpVect type convert to Vec2 type.
|
|
static cpVect | point2cpv (const Vec2 &point) |
| Make Vec2 type convert to cpVect type.
|
|
static Size | cpv2size (const cpVect &vec) |
| Make cpVect type convert to Size type.
|
|
static cpVect | size2cpv (const Size &size) |
| Make Size type convert to cpVect type.
|
|
static float | cpfloat2float (cpFloat f) |
| Make cpFloat type convert to float type.
|
|
static cpBB | rect2cpbb (const Rect &rect) |
| Make Rect type convert to cpBB type.
|
|
static Rect | cpbb2rect (const cpBB &bb) |
| Make cpBB type convert to Rect type.
|
|
static Vec2 * | cpvs2points (const cpVect *cpvs, Vec2 *out, int count) |
| Make cpVect array convert to Vec2 array.
|
|
static cpVect * | points2cpvs (const Vec2 *points, cpVect *out, int count) |
| Make Vec2 array convert to cpVect array.
|
|
A physics helper class.
Support for conversion between the chipmunk types and cocos types, eg: cpVect to Vec2, cpVect to Size, cpFloat to float.