|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.eside.flingbox.math.Matrix22
public class Matrix22
Basic 2x2 matrix implementation This will be used to storage rotational matrix
Field Summary | |
---|---|
float[] |
values
Matrix values |
Constructor Summary | |
---|---|
Matrix22()
Creates zero matrix |
|
Matrix22(float angle)
Constructor for a Rotation matrix |
|
Matrix22(float[] m)
Creates matrix with values |
Method Summary | |
---|---|
float |
determinant()
Computes determinant |
Matrix22 |
invert()
Computes matrix invert |
static Matrix22 |
invert(Matrix22 m)
Computes matrix invert |
java.lang.String |
toString()
Return a string representing the matrix |
Matrix22 |
transpose()
Transposes matrix |
static Matrix22 |
transpose(Matrix22 m)
Creates the transpose of the matrix |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public float[] values
Constructor Detail |
---|
public Matrix22()
public Matrix22(float[] m)
m
- Values. should have 4 memberspublic Matrix22(float angle)
angle
- Angle for rotationMethod Detail |
---|
public static Matrix22 transpose(Matrix22 m)
public Matrix22 transpose()
public static Matrix22 invert(Matrix22 m)
public Matrix22 invert()
public float determinant()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |