Метод | Описание | |
---|---|---|
compose ( Vector3 translation, THREE.Quaternion quaternion, Vector3 scale ) : void |
Sets this matrix to the transformation composed of translation, quaternion and scale.
|
|
copy ( |
Copies the values of matrix m into this matrix.
|
|
copyPosition ( |
Copies the translation component of the supplied matrix m into this matrix translation component.
|
|
decompose ( Vector3 translation, THREE.Quaternion quaternion, Vector3 scale ) : void |
Decomposes this matrix into the translation, quaternion and scale components.
|
|
determinant ( ) : double |
Computes and returns the determinant of this matrix. Based on http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm
|
|
extractBasis ( Vector3 xAxis, Vector3 yAxis, Vector3 zAxis ) : void |
Extracts basis of into the three axis vectors provided. Returns the current matrix.
|
|
extractRotation ( |
Extracts the rotation of the supplied matrix m into this matrix rotation component.
|
|
identity ( ) : void |
Resets this matrix to identity.
|
|
lookAt ( Vector3 eye, Vector3 center, Vector3 up ) : void |
Constructs a rotation matrix, looking from eye towards center with defined up vector.
|
|
makeBasis ( Vector3 xAxis, Vector3 yAxis, Vector3 zAxis ) : void |
Creates the basis matrix consisting of the three provided axis vectors. Returns the current matrix.
|
|
makeTranslation ( double x, double y, double z ) : |
Sets this matrix as translation transform.
|
|
multiply ( |
Multiplies this matrix by m.
|
|
multiplyMatrices ( |
Sets this matrix to a x b.
|
|
multiplyScalar ( double s ) : void |
Multiplies every component of the matrix by a scalar value s.
|
|
scale ( Vector3 v ) : void |
Multiplies the columns of this matrix by vector v.
|
|
set ( double n11, double n12, double n13, double n14, double n21, double n22, double n23, double n24, double n31, double n32, double n33, double n34, double n41, double n42, double n43, double n44 ) : void |
Sets all fields of this matrix to the supplied row-major values n11..n44.
|
|
transpose ( ) : void |
Transposes this matrix.
|
public compose ( Vector3 translation, THREE.Quaternion quaternion, Vector3 scale ) : void | ||
translation | Vector3 | |
quaternion | THREE.Quaternion | |
scale | Vector3 | |
Результат | void |
public decompose ( Vector3 translation, THREE.Quaternion quaternion, Vector3 scale ) : void | ||
translation | Vector3 | |
quaternion | THREE.Quaternion | |
scale | Vector3 | |
Результат | void |
public extractBasis ( Vector3 xAxis, Vector3 yAxis, Vector3 zAxis ) : void | ||
xAxis | Vector3 | |
yAxis | Vector3 | |
zAxis | Vector3 | |
Результат | void |
public extractRotation ( |
||
m | ||
Результат | void |
public lookAt ( Vector3 eye, Vector3 center, Vector3 up ) : void | ||
eye | Vector3 | |
center | Vector3 | |
up | Vector3 | |
Результат | void |
public makeBasis ( Vector3 xAxis, Vector3 yAxis, Vector3 zAxis ) : void | ||
xAxis | Vector3 | |
yAxis | Vector3 | |
zAxis | Vector3 | |
Результат | void |
public makeTranslation ( double x, double y, double z ) : |
||
x | double | |
y | double | |
z | double | |
Результат |
public multiplyMatrices ( |
||
a | ||
b | ||
Результат | void |
public set ( double n11, double n12, double n13, double n14, double n21, double n22, double n23, double n24, double n31, double n32, double n33, double n34, double n41, double n42, double n43, double n44 ) : void | ||
n11 | double | |
n12 | double | |
n13 | double | |
n14 | double | |
n21 | double | |
n22 | double | |
n23 | double | |
n24 | double | |
n31 | double | |
n32 | double | |
n33 | double | |
n34 | double | |
n41 | double | |
n42 | double | |
n43 | double | |
n44 | double | |
Результат | void |