|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pulpcore.math.Transform
public class Transform
The Transform class represents a 2D affine transform. Most apps will not need to use this class - transformations happen automatically using sprite properties.
Field Summary | |
---|---|
static int |
TYPE_IDENTITY
|
static int |
TYPE_ROTATE
|
static int |
TYPE_SCALE
|
static int |
TYPE_TRANSLATE
|
Constructor Summary | |
---|---|
Transform()
|
|
Transform(Transform transform)
|
Method Summary | |
---|---|
void |
clear()
Clears this transform, i.e., sets this transform to the identity matrix. |
void |
concatenate(Transform transform)
|
boolean |
equals(Object object)
|
Rect |
getBounds(int fw,
int fh)
Gets the fixed-point bounds. |
boolean |
getBounds(int fw,
int fh,
Rect bounds)
Gets the integer bounds. |
int |
getDeterminant()
|
int |
getScaleX()
|
int |
getScaleY()
|
int |
getShearX()
|
int |
getShearY()
|
int |
getTranslateX()
|
int |
getTranslateY()
|
int |
getType()
|
int |
hashCode()
|
boolean |
inverseTransform(Tuple2i t)
|
int |
inverseTransformX(int fx,
int fy)
Returns Integer.MAX_VALUE if this transform can't be inverted. |
int |
inverseTransformY(int fx,
int fy)
Returns Integer.MAX_VALUE if this transform can't be inverted. |
void |
preConcatenate(Transform transform)
|
void |
rotate(int fAngle)
|
void |
rotate(int fCosAngle,
int fSinAngle)
|
void |
roundTranslation()
|
void |
scale(int fx,
int fy)
|
void |
set(Transform transform)
Sets this transform to a copy of specified transform. |
void |
shear(int fx,
int fy)
|
void |
transform(Tuple2i t)
|
int |
transformX(int fx,
int fy)
|
int |
transformY(int fx,
int fy)
|
void |
translate(int fx,
int fy)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_IDENTITY
public static final int TYPE_TRANSLATE
public static final int TYPE_SCALE
public static final int TYPE_ROTATE
Constructor Detail |
---|
public Transform()
public Transform(Transform transform)
Method Detail |
---|
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int transformX(int fx, int fy)
public int transformY(int fx, int fy)
public void transform(Tuple2i t)
public int inverseTransformX(int fx, int fy)
public int inverseTransformY(int fx, int fy)
public boolean inverseTransform(Tuple2i t)
public boolean getBounds(int fw, int fh, Rect bounds)
public Rect getBounds(int fw, int fh)
public int getType()
public int getTranslateX()
public int getTranslateY()
public int getScaleX()
public int getScaleY()
public int getShearX()
public int getShearY()
public int getDeterminant()
public void clear()
public void set(Transform transform)
public void concatenate(Transform transform)
public void preConcatenate(Transform transform)
public void translate(int fx, int fy)
public void roundTranslation()
public void scale(int fx, int fy)
public void rotate(int fAngle)
public void rotate(int fCosAngle, int fSinAngle)
public void shear(int fx, int fy)
|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |