Package javajs.util
Class M34
java.lang.Object
javajs.util.M34
A base class for both M3 and M4 to conserve code size.
- Author:
- Kenji hiranabe additions by Bob Hanson hansonr@stolaf.edu 9/30/2012 for unique constructor and method names for the optimization of compiled JavaScript using Java2Script and for subclassing to M3 and M4
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
The first element of the first rowfloat
The second element of the first row.float
third element of the first row.float
The first element of the second row.float
The second element of the second row.float
The third element of the second row.float
The first element of the third row.float
The second element of the third row.float
The third element of the third row. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
clear33()
float
protected void
err()
protected float
get33
(int row, int col) protected void
getColumn33
(int column, float[] v) abstract void
getRow
(int row, float[] v) protected void
getRow33
(int row, float[] v) protected void
mul33
(float x) void
void
Transform the vector vec using this Matrix3f and place the result into vecOut.protected void
set33
(int row, int col, float v) protected void
protected void
setColumn33
(int column, float[] v) protected void
Sets the value of this matrix to the double value of the Matrix3f argument.protected void
setRow33
(int row, float[] v) protected void
setXRot
(float angle) protected void
setYRot
(float angle) protected void
setZRot
(float angle) protected void
void
-
Field Details
-
m00
public float m00The first element of the first row -
m01
public float m01The second element of the first row. -
m02
public float m02third element of the first row. -
m10
public float m10The first element of the second row. -
m11
public float m11The second element of the second row. -
m12
public float m12The third element of the second row. -
m20
public float m20The first element of the third row. -
m21
public float m21The second element of the third row. -
m22
public float m22The third element of the third row.
-
-
Constructor Details
-
M34
public M34()
-
-
Method Details
-
setAA33
-
rotate
-
rotate2
Transform the vector vec using this Matrix3f and place the result into vecOut.- Parameters:
t
- the single precision vector to be transformedresult
- the vector into which the transformed values are placed
-
setM33
Sets the value of this matrix to the double value of the Matrix3f argument.- Parameters:
m1
- the matrix3f
-
clear33
protected void clear33() -
set33
protected void set33(int row, int col, float v) -
get33
protected float get33(int row, int col) -
setRow33
protected void setRow33(int row, float[] v) -
getRow
public abstract void getRow(int row, float[] v) -
getRow33
protected void getRow33(int row, float[] v) -
setColumn33
protected void setColumn33(int column, float[] v) -
getColumn33
protected void getColumn33(int column, float[] v) -
add33
-
sub33
-
mul33
protected void mul33(float x) -
transpose33
public void transpose33() -
setXRot
protected void setXRot(float angle) -
setYRot
protected void setYRot(float angle) -
setZRot
protected void setZRot(float angle) -
determinant3
public float determinant3()- Returns:
- 3x3 determinant
-
err
protected void err()
-