|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.util.QTByteObject | +--quicktime.qd3d.math.Matrix3x3
Matrix3x3 contains information for a 3 x 3 float matrix. refer to TQ3Matrix3x3 in QuickDraw3d
Field Summary | |
static int |
kNativeSize
This is the size (the number of bytes) that are required for this class |
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Fields inherited from interface quicktime.jdirect.QuickDraw3DLib |
libraryInstance |
Constructor Summary | |
Matrix3x3()
Creates a Matrix3x3 object and sets it to the identity matrix. |
|
Matrix3x3(float[][] table)
Construct an instance of a Matrix3x3 from the values of a float[][], which is a 3x3 table, - an array of row values. |
Method Summary | |
Matrix3x3 |
adjoint()
Returns the adjoint of the matrix. |
java.lang.Object |
clone()
Returns a copy of this class. |
Matrix3x3 |
copy()
Returns a copy of the matrix. |
float |
determinant()
Returns the determinant of this matrix. |
float |
getAt00()
Returns the value at the specified index. |
float |
getAt01()
Returns the value at the specified index. |
float |
getAt02()
Returns the value at the specified index. |
float |
getAt10()
Returns the value at the specified index. |
float |
getAt11()
Returns the value at the specified index. |
float |
getAt12()
Returns the value at the specified index. |
float |
getAt20()
Returns the value at the specified index. |
float |
getAt21()
Returns the value at the specified index. |
float |
getAt22()
Returns the value at the specified index. |
static EndianDescriptor |
getEndianDescriptor()
Returns the EndianDescriptor for this class. |
Matrix3x3 |
invert()
Returns the inverse of the matrix. |
Matrix3x3 |
multiply(Matrix3x3 matrixB)
Returns the product of the two 3-by-3 matrices, this and matrixB. |
void |
setAt00(float val)
Sets the value at the specified index. |
void |
setAt01(float val)
Sets the value at the specified index. |
void |
setAt02(float val)
Sets the value at the specified index. |
void |
setAt10(float val)
Sets the value at the specified index. |
void |
setAt11(float val)
Sets the value at the specified index. |
void |
setAt12(float val)
Sets the value at the specified index. |
void |
setAt20(float val)
Sets the value at the specified index. |
void |
setAt21(float val)
Sets the value at the specified index. |
void |
setAt22(float val)
Sets the value at the specified index. |
void |
setIdentity()
Sets the Matrix to the 3-by-3 identity matrix. |
void |
setRotateAboutPoint(QDPoint origin,
float angle)
Rotates a matrix by the specified angle around the point origin. |
void |
setScale(float xScale,
float yScale)
Scales a matrix by the amount xScale along the x coordinate axis and by the amount yScale along the y coordinate axis. |
void |
setTranslate(float xTrans,
float yTrans)
Translates a matrix by the amount xTrans along the x coordinate axis and by the amount yTrans along the y coordinate axis. |
Matrix3x3 |
transpose()
Returns the transpose of the matrix. |
Methods inherited from class quicktime.util.QTByteObject |
equals, fromArray, getBytes, getSize, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int kNativeSize
Constructor Detail |
public Matrix3x3()
public Matrix3x3(float[][] table)
table
- a 3x3 table of float values.Method Detail |
public static final EndianDescriptor getEndianDescriptor()
public float getAt00()
public void setAt00(float val)
val
- the new float valuepublic float getAt01()
public void setAt01(float val)
val
- the new float valuepublic float getAt02()
public void setAt02(float val)
val
- the new float valuepublic float getAt10()
public void setAt10(float val)
val
- the new float valuepublic float getAt11()
public void setAt11(float val)
val
- the new float valuepublic float getAt12()
public void setAt12(float val)
val
- the new float valuepublic float getAt20()
public void setAt20(float val)
val
- the new float valuepublic float getAt21()
public void setAt21(float val)
val
- the new float valuepublic float getAt22()
public void setAt22(float val)
val
- the new float valuepublic Matrix3x3 copy()
public void setIdentity()
public Matrix3x3 transpose()
public Matrix3x3 invert()
public Matrix3x3 adjoint()
public Matrix3x3 multiply(Matrix3x3 matrixB)
matrixB
- a matrixpublic float determinant()
public void setTranslate(float xTrans, float yTrans)
xTrans
- The desired amount of translation along the x coordinate axis.yTrans
- The desired amount of translation along the y coordinate axis.public void setScale(float xScale, float yScale)
xScale
- The desired amount of scaling along the x coordinate axis.yScale
- The desired amount of scaling along the y coordinate axis.public void setRotateAboutPoint(QDPoint origin, float angle)
origin
- The desired origin of rotation.angle
- The desired angle of rotation, in radians.public java.lang.Object clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |