CCAffineTransform
CCAffineTransform
Cocos2DType: Struct
Constructors
CCAffineTransform(float, float, float, float, float, float)
Methods
Concat(CCAffineTransform)
Concat(CCAffineTransform)(Cocos2D.CCAffineTransform m)Parameters:
m (Cocos2D.CCAffineTransform)Concat(CCAffineTransform, CCAffineTransform)
Cocos2D.CCAffineTransform Concat(CCAffineTransform, CCAffineTransform)(Cocos2D.CCAffineTransform t1, Cocos2D.CCAffineTransform t2)Concatenate `t2' to `t1' and return the result: t' = t1 * t2 */s
Parameters:
t1 (Cocos2D.CCAffineTransform)t2 (Cocos2D.CCAffineTransform)Returns:
Cocos2D.CCAffineTransformExample
Concat(ref CCAffineTransform)
Concat(ref CCAffineTransform)(Cocos2D.CCAffineTransform m)Parameters:
m (Cocos2D.CCAffineTransform)Concat(ref CCAffineTransform, ref CCAffineTransform, out CCAffineTransform)
Concat(ref CCAffineTransform, ref CCAffineTransform, out CCAffineTransform)(Cocos2D.CCAffineTransform t1, Cocos2D.CCAffineTransform t2, Cocos2D.CCAffineTransform tOut)Parameters:
t1 (Cocos2D.CCAffineTransform)t2 (Cocos2D.CCAffineTransform)tOut (Cocos2D.CCAffineTransform)ConcatScale(float, float)
ConcatScale(float, float)(System.Single xscale, System.Single yscale)Parameters:
xscale (System.Single)yscale (System.Single)ConcatTranslation(float, float)
ConcatTranslation(float, float)(System.Single x, System.Single y)Parameters:
x (System.Single)y (System.Single)Equal(CCAffineTransform, CCAffineTransform)
System.Boolean Equal(CCAffineTransform, CCAffineTransform)(Cocos2D.CCAffineTransform t1, Cocos2D.CCAffineTransform t2)Return true if `t1' and `t2' are equal, false otherwise.
Parameters:
t1 (Cocos2D.CCAffineTransform)t2 (Cocos2D.CCAffineTransform)Returns:
System.BooleanExample
Equals(ref CCAffineTransform)
System.Boolean Equals(ref CCAffineTransform)(Cocos2D.CCAffineTransform t)Parameters:
t (Cocos2D.CCAffineTransform)Returns:
System.BooleanGetRotation()
System.Single GetRotation()()Returns:
System.SingleGetRotationX()
System.Single GetRotationX()()Returns:
System.SingleGetRotationY()
System.Single GetRotationY()()Returns:
System.SingleGetScaleX()
System.Single GetScaleX()()Returns:
System.SingleGetScaleY()
System.Single GetScaleY()()Returns:
System.SingleInvert(CCAffineTransform)
Cocos2D.CCAffineTransform Invert(CCAffineTransform)(Cocos2D.CCAffineTransform t)Parameters:
t (Cocos2D.CCAffineTransform)Returns:
Cocos2D.CCAffineTransformLerp(ref CCAffineTransform, ref CCAffineTransform, float, out CCAffineTransform)
Lerp(ref CCAffineTransform, ref CCAffineTransform, float, out CCAffineTransform)(Cocos2D.CCAffineTransform m1, Cocos2D.CCAffineTransform m2, System.Single t, Cocos2D.CCAffineTransform res)Parameters:
m1 (Cocos2D.CCAffineTransform)m2 (Cocos2D.CCAffineTransform)t (System.Single)res (Cocos2D.CCAffineTransform)Rotate(CCAffineTransform, float)
Cocos2D.CCAffineTransform Rotate(CCAffineTransform, float)(Cocos2D.CCAffineTransform t, System.Single anAngle)Parameters:
t (Cocos2D.CCAffineTransform)anAngle (System.Single)Returns:
Cocos2D.CCAffineTransformScale(CCAffineTransform, float, float)
Cocos2D.CCAffineTransform Scale(CCAffineTransform, float, float)(Cocos2D.CCAffineTransform t, System.Single sx, System.Single sy)Parameters:
t (Cocos2D.CCAffineTransform)sx (System.Single)sy (System.Single)Returns:
Cocos2D.CCAffineTransformSetLerp(CCAffineTransform, CCAffineTransform, float)
SetLerp(CCAffineTransform, CCAffineTransform, float)(Cocos2D.CCAffineTransform m1, Cocos2D.CCAffineTransform m2, System.Single t)Parameters:
m1 (Cocos2D.CCAffineTransform)m2 (Cocos2D.CCAffineTransform)t (System.Single)SetRotation(float)
SetRotation(float)(System.Single rotation)Parameters:
rotation (System.Single)Example
SetScale(float, float)
SetScale(float, float)(System.Single scaleX, System.Single scaleY)Parameters:
scaleX (System.Single)scaleY (System.Single)SetScaleRotation(float, float, float)
SetScaleRotation(float, float, float)(System.Single scaleX, System.Single scaleY, System.Single angle)Parameters:
scaleX (System.Single)scaleY (System.Single)angle (System.Single)SetScaleX(float)
SetScaleX(float)(System.Single scaleX)Parameters:
scaleX (System.Single)SetScaleY(float)
SetScaleY(float)(System.Single scaleY)Parameters:
scaleY (System.Single)SetTranslation(float, float)
SetTranslation(float, float)(System.Single x, System.Single y)Parameters:
x (System.Single)y (System.Single)Transform(CCPoint)
Cocos2D.CCPoint Transform(CCPoint)(Cocos2D.CCPoint point)Parameters:
point (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointTransform(CCPoint, CCAffineTransform)
Cocos2D.CCPoint Transform(CCPoint, CCAffineTransform)(Cocos2D.CCPoint point, Cocos2D.CCAffineTransform t)Parameters:
point (Cocos2D.CCPoint)t (Cocos2D.CCAffineTransform)Returns:
Cocos2D.CCPointTransform(ref CCPoint)
Transform(ref CCPoint)(Cocos2D.CCPoint point)Parameters:
point (Cocos2D.CCPoint)Transform(CCRect)
Cocos2D.CCRect Transform(CCRect)(Cocos2D.CCRect rect)Parameters:
rect (Cocos2D.CCRect)Returns:
Cocos2D.CCRectTransform(CCRect, CCAffineTransform)
Cocos2D.CCRect Transform(CCRect, CCAffineTransform)(Cocos2D.CCRect rect, Cocos2D.CCAffineTransform anAffineTransform)Parameters:
rect (Cocos2D.CCRect)anAffineTransform (Cocos2D.CCAffineTransform)Returns:
Cocos2D.CCRectTransform(ref CCRect)
Transform(ref CCRect)(Cocos2D.CCRect rect)Parameters:
rect (Cocos2D.CCRect)Transform(CCSize, CCAffineTransform)
Cocos2D.CCSize Transform(CCSize, CCAffineTransform)(Cocos2D.CCSize size, Cocos2D.CCAffineTransform t)Parameters:
size (Cocos2D.CCSize)t (Cocos2D.CCAffineTransform)Returns:
Cocos2D.CCSizeTransform(ref int, ref int)
Transform(ref int, ref int)(System.Int32 x, System.Int32 y)Parameters:
x (System.Int32)y (System.Int32)Transform(float, float, out float, out float)
Transform(float, float, out float, out float)(System.Single x, System.Single y, System.Single xresult, System.Single yresult)Parameters:
x (System.Single)y (System.Single)xresult (System.Single)yresult (System.Single)Transform(ref float, ref float)
Transform(ref float, ref float)(System.Single x, System.Single y)Parameters:
x (System.Single)y (System.Single)Translate(CCAffineTransform, float, float)
Cocos2D.CCAffineTransform Translate(CCAffineTransform, float, float)(Cocos2D.CCAffineTransform t, System.Single tx, System.Single ty)Parameters:
t (Cocos2D.CCAffineTransform)tx (System.Single)ty (System.Single)Returns:
Cocos2D.CCAffineTransformFields
Identity(Cocos2D.CCAffineTransform)
a(System.Single)
b(System.Single)
c(System.Single)
d(System.Single)
tx(System.Single)
ty(System.Single)
Propertys
TranslationX(System.Single)
TranslationY(System.Single)
XnaMatrix(Microsoft.Xna.Framework.Matrix)
Get/set the XNA matrix of this transform. This matrix will assume z=0.