|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threed.jpct.BufferedMatrix
A BufferedMatrix is a kind of double buffered Matrix. It is used for
implementing the Camera, so that the Camera could be manipulated in a Thread
without affecting the current rendering taking place in another Thread.
A buffered matrix contains a frontbuffer matrix (used for rendering) and a
backbuffer matrix (used for manipulation). In case of the Camera, the
backbuffer matrix will automatically be copied into the frontbuffer matrix
before the rendering starts.
| Method Summary | |
void |
copyBackToFront()
Copy the backbuffer matrix into the frontbuffer matrix. |
Matrix |
getBack()
Returns the Matrix that is used as the backbuffer matrix. |
Matrix |
getFront()
Returns the Matrix that is used as the frontbuffer matrix. |
void |
matMul(Matrix mat2)
Multiplies the backbuffer matrix with another one. |
void |
rotateAxis(SimpleVector axis,
float angle)
Rotates the backbuffer matrix around an arbitrary axis. |
void |
rotateX(float angle)
Rotates the backbuffer matrix around the x-axis. |
void |
rotateY(float angle)
Rotates the backbuffer matrix around the y-axis. |
void |
rotateZ(float angle)
Rotates the backbuffer matrix around the z-axis. |
void |
setBack(Matrix mat)
Sets the backbuffer matrix. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void rotateAxis(SimpleVector axis,
float angle)
axis - a direction-vector pointing into the axis directionangle - the angle of the rotationpublic void rotateX(float angle)
angle - the anglepublic void rotateY(float angle)
angle - the anglepublic void rotateZ(float angle)
angle - the anglepublic void matMul(Matrix mat2)
mat2 - the matrix to multiply withpublic void copyBackToFront()
public Matrix getFront()
public Matrix getBack()
public void setBack(Matrix mat)
mat - the new backbuffer matrix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||