|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--bijnum.BIJtransform
This class implements static transformation matrix operations for 2-D and 3-D transformation matrices.
Interface leans heavily on
Foley, van Dam. Computer Graphics. Second ed.
Homogenuous coordinate systems.
Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.
Constructor Summary | |
BIJtransform()
|
Method Summary | |
protected static double |
clean(double d)
|
static float[][] |
newMatrix(int dimensions)
Create a new (diagonal) transformation matrix for the number of dimensions. |
static float[][] |
rotatex(float[][] m,
double theta)
Rotate a transformation matrix around the x-axis. |
static float[][] |
rotatey(float[][] m,
double theta)
Rotate a transformation matrix around the y axis. |
static float[][] |
rotatez(float[][] m,
double theta)
Rotate a transformation matrix around the z axis. |
static float[][] |
scale(float[][] m,
double sx,
double sy)
Scale a 2-D transformation matrix by sx, sy. |
static float[][] |
scale(float[][] m,
double sx,
double sy,
double sz)
Scale a 3-D transformation matrix by sx, sy, sz. |
static float[][] |
translate(float[][] m,
double tx,
double ty)
Translate a 2-D transformation matrix by these values. |
static float[][] |
translate(float[][] m,
double tx,
double ty,
double tz)
Translate a 3-D transformation matrix by these values. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public BIJtransform()
Method Detail |
public static float[][] newMatrix(int dimensions)
public static float[][] translate(float[][] m, double tx, double ty, double tz)
m
- the transformation matrixtx,ty,tz
- the amounts to translate on each of the axes.public static float[][] translate(float[][] m, double tx, double ty)
m
- the transformation matrixtx,ty
- the amounts to translate on each of the axes.public static float[][] scale(float[][] m, double sx, double sy, double sz)
m
- the transformation matrixsx,sy,sz
- the amounts to scale by on each of the axes.public static float[][] scale(float[][] m, double sx, double sy)
m
- the transformation matrixsx,sy
- the amounts to scale by on each of the axes.public static float[][] rotatex(float[][] m, double theta)
m
- the transformation matrixtheta
- the amount to rotate (in degrees)public static float[][] rotatey(float[][] m, double theta)
m
- the transformation matrixtheta
- the amount to rotate (in degrees)public static float[][] rotatez(float[][] m, double theta)
m
- the transformation matrixtheta
- the amount to rotate (in degrees)protected static double clean(double d)
|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |