cocos2d/external/chipmunk/include/chipmunk/cpTransform.h
static inline cpTransform
cpTransformRigid(cpVect translate, cpFloat radians)
{
	cpVect rot = cpvforangle(radians);
	return cpTransformNewTranspose(
		rot.x, -rot.y, translate.x,
		rot.y,  rot.x, translate.y
	);
}
/// Create a rigid transformation matrix. (transation + rotation)
Create a rigid transformation matrix. (transation + rotation)
Create a rigid transformation matrix . ( transation + rotation )
static inline cpTransform
cpTransformRigid(cpVect translate, cpFloat radians)
{
	cpVect rot = cpvforangle(radians);
	return cpTransformNewTranspose(
		rot.x, -rot.y, translate.x,
		rot.y,  rot.x, translate.y
	);
}
static inline cpTransform cpTransformRigid ( cpVect translate , cpFloat radians ) { cpVect rot = cpvforangle ( radians ) ; return cpTransformNewTranspose ( rot . x , - rot . y , translate . x , rot . y , rot . x , translate . y ) ; }
Create a rigid transformation matrix.
Create a rigid transformation matrix .