cocos2d/external/chipmunk/include/chipmunk/cpTransform.h
static inline cpTransform
cpTransformInverse(cpTransform t)
{
  cpFloat inv_det = 1.0/(t.a*t.d - t.c*t.b);
  return cpTransformNewTranspose(
     t.d*inv_det, -t.c*inv_det, (t.c*t.ty - t.tx*t.d)*inv_det,
    -t.b*inv_det,  t.a*inv_det, (t.tx*t.b - t.a*t.ty)*inv_det
  );
}
/// Get the inverse of a transform matrix.
Get the inverse of a transform matrix.
Get the inverse of a transform matrix .
static inline cpTransform
cpTransformInverse(cpTransform t)
{
  cpFloat inv_det = 1.0/(t.a*t.d - t.c*t.b);
  return cpTransformNewTranspose(
     t.d*inv_det, -t.c*inv_det, (t.c*t.ty - t.tx*t.d)*inv_det,
    -t.b*inv_det,  t.a*inv_det, (t.tx*t.b - t.a*t.ty)*inv_det
  );
}
static inline cpTransform cpTransformInverse ( cpTransform t ) { cpFloat inv_det = 1.0 / ( t . a * t . d - t . c * t . b ) ; return cpTransformNewTranspose ( t . d * inv_det , - t . c * inv_det , ( t . c * t . ty - t . tx * t . d ) * inv_det , - t . b * inv_det , t . a * inv_det , ( t . tx * t . b - t . a * t . ty ) * inv_det ) ; }
Get the inverse of a transform matrix.
Get the inverse of a transform matrix .