Class JSC3D.Matrix3x4
Matrix3x4
This class implements 3x4 matrix and mass operations for 3D transformations.
Defined in: jsc3d.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
identity()
Make the matrix an identical matrix.
|
|
multiply(mult)
Multiply the matrix by another matrix.
|
|
rotateAboutXAxis(angle)
Rotate the matrix an arbitrary angle about the x-axis.
|
|
rotateAboutYAxis(angle)
Rotate the matrix an arbitrary angle about the y-axis.
|
|
rotateAboutZAxis(angle)
Rotate the matrix an arbitrary angle about the z-axis.
|
|
scale(sx, sy, sz)
Scale the matrix using scaling factors on each axial directions.
|
|
translate(tx, ty, tz)
Translate the matrix using translations on each axial directions.
|
Method Detail
identity()
Make the matrix an identical matrix.
multiply(mult)
Multiply the matrix by another matrix.
- Parameters:
- {JSC3D.Matrix3x4} mult
- another matrix to be multiplied on this.
rotateAboutXAxis(angle)
Rotate the matrix an arbitrary angle about the x-axis.
- Parameters:
- {Number} angle
- rotation angle in degrees.
rotateAboutYAxis(angle)
Rotate the matrix an arbitrary angle about the y-axis.
- Parameters:
- {Number} angle
- rotation angle in degrees.
rotateAboutZAxis(angle)
Rotate the matrix an arbitrary angle about the z-axis.
- Parameters:
- {Number} angle
- rotation angle in degrees.
scale(sx, sy, sz)
Scale the matrix using scaling factors on each axial directions.
- Parameters:
- {Number} sx
- scaling factors on x-axis.
- {Number} sy
- scaling factors on y-axis.
- {Number} sz
- scaling factors on z-axis.
translate(tx, ty, tz)
Translate the matrix using translations on each axial directions.
- Parameters:
- {Number} tx
- translations on x-axis.
- {Number} ty
- translations on y-axis.
- {Number} tz
- translations on z-axis.