Class Matrix3D
java.lang.Object
|
+----Matrix3D
- class Matrix3D
- extends Object
A fairly conventional 3D matrix object that can transform sets of
3D points and perform a variety of manipulations on the transform
-
pi
-
-
xo
-
-
xx
-
-
xy
-
-
xz
-
-
yo
-
-
yx
-
-
yy
-
-
yz
-
-
zo
-
-
zx
-
-
zy
-
-
zz
-
-
Matrix3D()
- Create a new unit matrix
-
mult(Matrix3D)
- Multiply this matrix by a second: M = M*R
-
scale(float)
- Scale by f in all dimensions
-
scale(float, float, float)
- Scale along each axis independently
-
toString()
-
-
transform(float[], int[], int)
- Transform nvert points from v into tv.
-
translate(float, float, float)
- Translate the origin
-
unit()
- Reinitialize to the unit matrix
-
xrot(double)
- rotate theta degrees about the x axis
-
yrot(double)
- rotate theta degrees about the y axis
-
zrot(double)
- rotate theta degrees about the z axis
xx
float xx
xy
float xy
xz
float xz
xo
float xo
yx
float yx
yy
float yy
yz
float yz
yo
float yo
zx
float zx
zy
float zy
zz
float zz
zo
float zo
pi
static final double pi
Matrix3D
Matrix3D()
- Create a new unit matrix
scale
void scale(float f)
- Scale by f in all dimensions
scale
void scale(float xf,
float yf,
float zf)
- Scale along each axis independently
translate
void translate(float x,
float y,
float z)
- Translate the origin
yrot
void yrot(double theta)
- rotate theta degrees about the y axis
xrot
void xrot(double theta)
- rotate theta degrees about the x axis
zrot
void zrot(double theta)
- rotate theta degrees about the z axis
mult
void mult(Matrix3D rhs)
- Multiply this matrix by a second: M = M*R
unit
void unit()
- Reinitialize to the unit matrix
transform
void transform(float v[],
int tv[],
int nvert)
- Transform nvert points from v into tv. v contains the input
coordinates in floating point. Three successive entries in
the array constitute a point. tv ends up holding the transformed
points as integers; three successive entries per point
toString
public String toString()
- Overrides:
- toString in class Object