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 TypeFieldDescriptionfloatThe first element of the first rowfloatThe second element of the first row.floatthird element of the first row.floatThe first element of the second row.floatThe second element of the second row.floatThe third element of the second row.floatThe first element of the third row.floatThe second element of the third row.floatThe third element of the third row. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidclear33()floatprotected voiderr()protected floatget33(int row, int col) protected voidgetColumn33(int column, float[] v) abstract voidgetRow(int row, float[] v) protected voidgetRow33(int row, float[] v) protected voidmul33(float x) voidvoidTransform the vector vec using this Matrix3f and place the result into vecOut.protected voidset33(int row, int col, float v) protected voidprotected voidsetColumn33(int column, float[] v) protected voidSets the value of this matrix to the double value of the Matrix3f argument.protected voidsetRow33(int row, float[] v) protected voidsetXRot(float angle) protected voidsetYRot(float angle) protected voidsetZRot(float angle) protected voidvoid
-
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()
-