|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgame.geom.CAffineTransform
public class CAffineTransform
Provides all affine transformations matrixes (zoom, rotation...).
Generated matrixes have their values in fixed point values.
CFixedPoint| Field Summary | |
|---|---|
private static int |
M
|
int[][] |
m_fpMat
|
| Constructor Summary | |
|---|---|
CAffineTransform()
|
|
| Method Summary | |
|---|---|
static int[][] |
getID()
Comodity function. |
static int[][] |
getNullMatrix()
Comodity function. |
static int[][] |
getRotationMatrix(float alpha,
float x,
float y)
Generates a rotation matrix. |
static int[][] |
getZoomMatrix(float lambda,
float x,
float y)
Generates a zoom matrix. |
int[] |
mul(int[] fpV)
Transforms a vector |
void |
mul(int[][] fpMat)
Multiplies the member matrix by another. |
static int[] |
mul(int[][] A,
int[] v)
|
static int[][] |
mul(int[][] A,
int[][] B)
Multiplies two matrixes. |
void |
rotate(float alpha,
float x,
float y)
Generate a rotation matrix and multiplies the member matrix by it. |
void |
zoom(float lambda,
float x,
float y)
Generate a zoom matrix and multiplies the member matrix by it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int M
public int[][] m_fpMat
| Constructor Detail |
|---|
public CAffineTransform()
| Method Detail |
|---|
public static final int[][] getID()
public static final int[][] getNullMatrix()
public static final int[][] mul(int[][] A,
int[][] B)
A - B -
public static final int[] mul(int[][] A,
int[] v)
public static final int[][] getRotationMatrix(float alpha,
float x,
float y)
alpha - angle of the rotationx - center of the rotationy -
CFixedPoint
public static final int[][] getZoomMatrix(float lambda,
float x,
float y)
lambda - the zooming factorx - center of the zoomy -
CFixedPointpublic final void mul(int[][] fpMat)
fpMat - public final int[] mul(int[] fpV)
fpV -
public final void rotate(float alpha,
float x,
float y)
alpha - x - y - CFixedPoint
public final void zoom(float lambda,
float x,
float y)
lambda - x - y - CFixedPoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||