|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bramosystems.oss.player.core.client.geom.Matrix2D
public class Matrix2D
Implements a 3x3 matrix. The matrix is represented as an array of Vectors Vx, Vy, Vz. The matrix notation is shown below:
[ VxX VyX VzX ] [ VxY VyY VzY ] [ VxZ VyZ VzZ ]
Vector
Constructor Summary | |
---|---|
Matrix2D()
Constructs an identity 3x3 matrix |
|
Matrix2D(Vector vx,
Vector vy,
Vector vz)
Constructs a 3x3 matrix using the specified vectors |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Tests the specified object obj for equality with this matrix |
Vector |
getVx()
Returns the vector Vx |
Vector |
getVy()
Returns the vector Vy |
Vector |
getVz()
Returns the vector Vz |
int |
hashCode()
|
void |
setVx(Vector vx)
Sets the vector Vx |
void |
setVy(Vector vy)
Sets the vector Vy |
void |
setVz(Vector vz)
Sets the vector Vz |
Matrix2D |
toIdentity()
Converts this matrix to an identity matrix |
String |
toString()
Returns the matrix elements as a String |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Matrix2D()
public Matrix2D(Vector vx, Vector vy, Vector vz)
vx
- the vector xvy
- the vector yvz
- the vector zMethod Detail |
---|
public Matrix2D toIdentity()
public Vector getVx()
public void setVx(Vector vx)
vx
- the vector Vxpublic Vector getVy()
public void setVy(Vector vy)
vy
- the vector Vypublic Vector getVz()
public void setVz(Vector vz)
vz
- the vector Vzpublic boolean equals(Object obj)
obj
for equality with this matrix
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
VxX, VyX, VzX, VxY, VyY, VzY, VxZ, VyZ, VzZ
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |