|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bramosystems.oss.player.core.client.geom.Matrix3D
public class Matrix3D
Implements a 4x4 matrix. The matrix is represented as an array of Vector3Ds Vx, Vy, Vz, Vw. The matrix notation is shown below:
[ VxX VyX VzX VwX ] [ VxY VyY VzY VwY ] [ VxZ VyZ VzZ VwZ ] [ VxW VyW VzW VwW ]
Vector3D
Constructor Summary | |
---|---|
Matrix3D()
Constructs an identity 4x4 matrix |
|
Matrix3D(Vector3D vx,
Vector3D vy,
Vector3D vz,
Vector3D vw)
Constructs a 4x4 matrix using the specified vectors |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Tests the specified object obj for equality with this matrix |
Vector3D |
getVw()
Returns the vector Vw |
Vector3D |
getVx()
Returns the vector Vx |
Vector3D |
getVy()
Returns the vector Vy |
Vector3D |
getVz()
Returns the vector Vz |
int |
hashCode()
|
void |
setVw(Vector3D vw)
Sets the vector Vw |
void |
setVx(Vector3D vx)
Sets the vector Vx |
void |
setVy(Vector3D vy)
Sets the vector Vy |
void |
setVz(Vector3D vz)
Sets the vector Vz |
Matrix3D |
toIdentity()
Converts this matrix to an identity matrix |
java.lang.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 Matrix3D()
public Matrix3D(Vector3D vx, Vector3D vy, Vector3D vz, Vector3D vw)
vx
- the vector xvy
- the vector yvz
- the vector zvw
- the vector wMethod Detail |
---|
public Matrix3D toIdentity()
public Vector3D getVw()
public void setVw(Vector3D vw)
vw
- the vector Vwpublic Vector3D getVx()
public void setVx(Vector3D vx)
vx
- the vector Vxpublic Vector3D getVy()
public void setVy(Vector3D vy)
vy
- the vector Vypublic Vector3D getVz()
public void setVz(Vector3D vz)
vz
- the vector Vzpublic boolean equals(java.lang.Object obj)
obj
for equality with this matrix
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
VxX, VyX, VzX, VwX, VxY, VyY, VzY, VwY,
VxZ, VyZ, VzZ, VwZ, VxW, VyW, VzW, VwW
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |