2011-06-14 14:31:25 +08:00
|
|
|
|
2012-08-28 14:53:52 +08:00
|
|
|
class CCAffineTransform {
|
2012-08-10 18:14:04 +08:00
|
|
|
float a, b, c, d;
|
|
|
|
float tx, ty;
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
2012-02-02 14:26:38 +08:00
|
|
|
|
2012-08-10 18:14:04 +08:00
|
|
|
CCAffineTransform __CCAffineTransformMake(float a, float b, float c, float d, float tx, float ty);
|
|
|
|
CCAffineTransform CCAffineTransformMake(float a, float b, float c, float d, float tx, float ty);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
|
|
|
CCPoint __CCPointApplyAffineTransform(CCPoint point, CCAffineTransform t);
|
|
|
|
CCPoint CCPointApplyAffineTransform(CCPoint point, CCAffineTransform t);
|
|
|
|
|
|
|
|
CCSize CCSizeApplyAffineTransform(CCSize size, CCAffineTransform t);
|
|
|
|
CCSize __CCSizeApplyAffineTransform(CCSize size, CCAffineTransform t);
|
|
|
|
|
|
|
|
CCAffineTransform CCAffineTransformMakeIdentity();
|
|
|
|
CCRect CCRectApplyAffineTransform(CCRect rect, CCAffineTransform anAffineTransform);
|
|
|
|
|
|
|
|
CCAffineTransform CCAffineTransformTranslate(CCAffineTransform t, float tx, float ty);
|
2012-08-10 18:14:04 +08:00
|
|
|
CCAffineTransform CCAffineTransformRotate(CCAffineTransform aTransform, float anAngle);
|
|
|
|
CCAffineTransform CCAffineTransformScale(CCAffineTransform t, float sx, float sy);
|
2011-06-14 14:31:25 +08:00
|
|
|
CCAffineTransform CCAffineTransformConcat(CCAffineTransform t1,CCAffineTransform t2);
|
|
|
|
bool CCAffineTransformEqualToTransform(CCAffineTransform t1,CCAffineTransform t2);
|
|
|
|
CCAffineTransform CCAffineTransformInvert(CCAffineTransform t);
|