public class

Transformation

extends Object
java.lang.Object
   ↳ org.anddev.andengine.util.Transformation

Class Overview

This class is basically a java-space replacement for the native android.graphics.Matrix class.

Math taken from senocular.com.

This class represents an affine transformation with the following matrix:
 [ a , b , 0 ]
 [ c , d , 0 ]
 [ tx, ty, 1 ]
where:
  • a is the x scale
  • b is the y skew
  • c is the x skew
  • d is the y scale
  • tx is the x translation
  • ty is the y translation
(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Public Constructors
Transformation()
Public Methods
void postConcat(Transformation pTransformation)
void postRotate(float pAngle)
void postScale(float pScaleX, float pScaleY)
void postTranslate(float pX, float pY)
void preConcat(Transformation pTransformation)
void preRotate(float pAngle)
void preScale(float pScaleX, float pScaleY)
void preTranslate(float pX, float pY)
void reset()
void setTo(Transformation pTransformation)
void setToIdentity()
Transformation setToRotate(float pAngle)
Transformation setToScale(float pScaleX, float pScaleY)
Transformation setToTranslate(float pX, float pY)
String toString()
void transform(float[] pVertices)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Transformation ()

Public Methods

public void postConcat (Transformation pTransformation)

public void postRotate (float pAngle)

public void postScale (float pScaleX, float pScaleY)

public void postTranslate (float pX, float pY)

public void preConcat (Transformation pTransformation)

public void preRotate (float pAngle)

public void preScale (float pScaleX, float pScaleY)

public void preTranslate (float pX, float pY)

public void reset ()

public void setTo (Transformation pTransformation)

public void setToIdentity ()

public Transformation setToRotate (float pAngle)

public Transformation setToScale (float pScaleX, float pScaleY)

public Transformation setToTranslate (float pX, float pY)

public String toString ()

public void transform (float[] pVertices)