DAZ Script |
---|
DzMatrix3 ( Boolean initIdentity=false ) |
DzMatrix3 ( String mtx ) |
DzMatrix3 ( Number m11, Number m21, Number m31, Number m12, Number m22, Number m32, Number m13, Number m23, Number m33, Number m14, Number m24, Number m34 ) |
DzMatrix3 ( DzVec3 xAxis, DzVec3 yAxis, DzVec3 zAxis ) |
DzMatrix3 ( DzQuat rot ) |
DzMatrix3 ( DzMatrix3 mat ) |
DAZ Script | |
---|---|
Number | det3 () |
DzMatrix3 | inverse () |
void | makeIdentity () |
DzMatrix4 | matrix4 () |
DzMatrix3 | multiply ( DzMatrix3 mat ) |
DzVec3 | multMatrixVec ( DzVec3 vec ) |
DzVec3 | multVec ( DzVec3 vec ) |
void | noRot () |
void | noScale () |
void | noTrans () |
Boolean | orthogonal () |
void | orthogonalize () |
void | preRotate ( DzQuat rot ) |
void | preRotateX ( Number radians ) |
void | preRotateY ( Number radians ) |
void | preRotateZ ( Number radians ) |
void | preTranslate ( DzVec3 vec ) |
void | rotate ( DzQuat rot ) |
void | rotateX ( Number radians ) |
void | rotateY ( Number radians ) |
void | rotateZ ( Number radians ) |
DzVec3 | row ( Number i ) |
void | scale ( Number scale, DzVec3 direction, Boolean affectTrans=false ) |
void | scale ( DzVec3 vec, Boolean affectTrans=false ) |
void | scale ( Number scale, Boolean affectTrans=false ) |
void | setTrans ( DzVec3 vec ) |
void | shearXY ( Number xShear, Number yShear ) |
void | shearXZ ( Number xShear, Number zShear ) |
void | shearYZ ( Number yShear, Number zShear ) |
String | toString () |
Number | trace () |
void | translate ( DzVec3 vec ) |
A transformation matrix consisting of 4 rows and 3 columns.
Whether or not this matrix is identity
The value of this matrix at [1, 1]
The value of this matrix at [1, 2]
The value of this matrix at [1, 3]
The value of this matrix at [1, 4]
The value of this matrix at [2, 1]
The value of this matrix at [2, 2]
The value of this matrix at [2, 3]
The value of this matrix at [2, 4]
The value of this matrix at [3, 1]
The value of this matrix at [3, 2]
The value of this matrix at [3, 3]
The value of this matrix at [3, 4]
DzMatrix3( Boolean initIdentity=false )
Default Constructor.
Parameter(s):
true
, this matrix will be set to the identity matrix, otherwise, this matrix values will be indeterminate.Creates a 4×3 matrix by parsing a string.
Parameter(s):
DzMatrix3( Number m11, Number m21, Number m31, Number m12, Number m22, Number m32, Number m13, Number m23, Number m33, Number m14, Number m24, Number m34 )
Constructs a 4×3 matrix from 12 elements in “Column Major” order.
Parameter(s):
Example:
// Create a new 4x3 matrix var mtx3 = new DzMatrix3( 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0 ); // Print the input sequence, for comparison print( 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0 ); // Print elements of this matrix in column major order print( mtx3.m11, mtx3.m21, mtx3.m31, mtx3.m12, mtx3.m22, mtx3.m32, mtx3.m13, mtx3.m23, mtx3.m33, mtx3.m14, mtx3.m24, mtx3.m34 );
DzMatrix3( DzVec3 xAxis, DzVec3 yAxis, DzVec3 zAxis )
Constructor from three axes of the rotation coord system. These are assumed to be (but do not have to be if a sheared or warped coord system is desired) to be orthogonal unit vectors.
Since:
Constructs a 4×3 matrix from a quaternion.
Parameter(s):
Since:
DzMatrix3( DzMatrix3 mat )
Copy Constructor.
Parameter(s):
Return Value:
Since:
DzMatrix3 : inverse()
Return Value:
void : makeIdentity()
Sets this matrix to be identity.
Return Value:
Since:
DzMatrix3 : multiply( DzMatrix3 mat )
Calculates the multiplication of this matrix by the given matrix.
Parameter(s):
Return Value:
DzVec3 : multMatrixVec( DzVec3 vec )
Multiplies this matrix by given column vector, giving column vector result.
Parameter(s):
Return Value:
DzVec3 : multVec( DzVec3 vec )
Transforms the given vector through this matrix.
Parameter(s):
Since:
void : noRot()
Sets the rotation part of this matrix to zero.
void : noScale()
Sets the scale part of this matrix to unity.
void : noTrans()
Sets the translation part of this matrix to zero.
Boolean : orthogonal()
Test for orthogonal 3×3 sub-matrix (orthonormal rows).
void : orthogonalize()
Orthogonalize this matrix.
void : preRotate( DzQuat rot )
Accumulate rotation by pre-multiplying.
Parameter(s):
void : preRotateX( Number radians )
Accumulate rotation around the X axis by pre-multiplying.
Parameter(s):
void : preRotateY( Number radians )
Accumulate rotation around the Y axis by pre-multiplying.
Parameter(s):
void : preRotateZ( Number radians )
Accumulate rotation around the Z axis by pre-multiplying.
Parameter(s):
void : preTranslate( DzVec3 vec )
Accumulate a translation by pre-multiplying.
Parameter(s):
Accumulate rotation (by post-multiplying).
Parameter(s):
void : rotateX( Number radians )
Accumulate rotation around the X axis (by post-multiplying).
Parameter(s):
void : rotateY( Number radians )
Accumulate rotation around the Y axis (by post-multiplying).
Parameter(s):
void : rotateZ( Number radians )
Accumulate rotation around the Z axis (by post-multiplying).
Parameter(s):
Return Value:
Since:
void : scale( Number scale, DzVec3 direction, Boolean affectTrans=false )
Accumulates a scale along an arbitrary axis (by post-multiplying).
Parameter(s):
Since:
void : scale( DzVec3 vec, Boolean affectTrans=false )
TODO: Add description.
void : scale( Number scale, Boolean affectTrans=false )
TODO: Add description.
Sets matrix to translate by given vector, leaving rotation as is.
Parameter(s):
void : shearXY( Number xShear, Number yShear )
Shears this matrix along the x and y axis (by post-multiplying).
Parameter(s):
Since:
void : shearXZ( Number xShear, Number zShear )
Shears this matrix along the x and z axis (by post-multiplying).
Parameter(s):
Since:
void : shearYZ( Number yShear, Number zShear )
Shears this matrix along the y and z axis (by post-multiplying).
Parameter(s):
Since:
Return Value:
Return Value:
Since:
void : translate( DzVec3 vec )
Accumulate a translation (by post-multiplying).
Parameter(s):