A 4x4 Matrix.
Methods
public applyToVector3Array( array: Array<number> , offset?: number , length?: number ) : Array<number>
Defined in three.d.ts:2875
Parameters
array: Array<number>
offset?: number optional
length?: number optional
Returns
Array<number>
public clone( ) : Matrix4
Defined in three.d.ts:2871
Clones this matrix.
Returns
Matrix4
Defined in three.d.ts:2805
Sets this matrix to the transformation composed of translation, rotation and scale.
Parameters
Returns
Matrix4
Defined in three.d.ts:2733
Copies a matrix m into this matrix.
Parameters
Returns
Matrix4
Defined in three.d.ts:2734
Parameters
Returns
Matrix4
public decompose( translation?: Vector3 , rotation?: Quaternion , scale?: Vector3 ) : Array<Object>
Defined in three.d.ts:2811
Decomposes this matrix into the translation, rotation and scale components.
If parameters are not passed, new instances will be created.
Parameters
Returns
Array<Object>
public extractRotation( m: Matrix4 ) : Matrix4
Defined in three.d.ts:2739
Copies the rotation component of the supplied matrix m into this matrix rotation component.
Parameters
Returns
Matrix4
public flattenToArrayOffset( array: Array<number> , offset: number ) : Array<number>
Defined in three.d.ts:2781
Flattens this matrix into supplied flat array starting from offset position in the array.
Parameters
array: Array<number>
offset: number
Returns
Array<number>
public getMaxScaleOnAxis( ) : number
Defined in three.d.ts:2877
Returns
number
public identity( ) : Matrix4
Defined in three.d.ts:2728
Resets this matrix to identity.
Returns
Matrix4
Defined in three.d.ts:2744
Constructs a rotation matrix, looking from eye towards center with defined up vector.
Parameters
Returns
Matrix4
public makeFrustum( left: number , right: number , bottom: number , top: number , near: number , far: number ) : Matrix4
Defined in three.d.ts:2856
Creates a frustum matrix.
Parameters
left: number
right: number
bottom: number
top: number
near: number
far: number
Returns
Matrix4
public makeOrthographic( left: number , right: number , top: number , bottom: number , near: number , far: number ) : Matrix4
Defined in three.d.ts:2866
Creates an orthographic projection matrix.
Parameters
left: number
right: number
top: number
bottom: number
near: number
far: number
Returns
Matrix4
public makePerspective( fov: number , aspect: number , near: number , far: number ) : Matrix4
Defined in three.d.ts:2861
Creates a perspective projection matrix.
Parameters
fov: number
aspect: number
near: number
far: number
Returns
Matrix4
public makeRotationFromEuler( euler: Euler ) : Matrix4
Defined in three.d.ts:2794
Parameters
Returns
Matrix4
public makeRotationX( theta: number ) : Matrix4
Defined in three.d.ts:2823
Sets this matrix as rotation transform around x axis by theta radians.
Parameters
Returns
Matrix4
public makeRotationY( theta: number ) : Matrix4
Defined in three.d.ts:2830
Sets this matrix as rotation transform around y axis by theta radians.
Parameters
Returns
Matrix4
public makeRotationZ( theta: number ) : Matrix4
Defined in three.d.ts:2837
Sets this matrix as rotation transform around z axis by theta radians.
Parameters
Returns
Matrix4
public makeScale( x: number , y: number , z: number ) : Matrix4
Defined in three.d.ts:2851
Sets this matrix as scale transform.
Parameters
x: number
y: number
z: number
Returns
Matrix4
public makeTranslation( x: number , y: number , z: number ) : Matrix4
Defined in three.d.ts:2816
Sets this matrix as translation transform.
Parameters
x: number
y: number
z: number
Returns
Matrix4
Defined in three.d.ts:2749
Multiplies this matrix by m.
Parameters
Returns
Matrix4
Defined in three.d.ts:2754
Sets this matrix to a x b.
Parameters
Returns
Matrix4
public multiplyScalar( s: number ) : Matrix4
Defined in three.d.ts:2765
Multiplies this matrix by s.
Parameters
Returns
Matrix4
public multiplyToArray( a: Matrix4 , b: Matrix4 , r: Array<number> ) : Matrix4
Defined in three.d.ts:2760
Sets this matrix to a x b and stores the result into the flat array r.
r can be either a regular Array or a TypedArray.
Parameters
Returns
Matrix4
public multiplyVector3Array( a: Array<number> ) : Array<number>
Defined in three.d.ts:2874
Parameters
Returns
Array<number>
Defined in three.d.ts:2800
Multiplies the columns of this matrix by vector v.
Parameters
Returns
Matrix4
public set( n11: number , n12: number , n13: number , n14: number , n21: number , n22: number , n23: number , n24: number , n31: number , n32: number , n33: number , n34: number , n41: number , n42: number , n43: number , n44: number ) : Matrix4
Defined in three.d.ts:2723
Sets all fields of this matrix.
Parameters
n11: number
n12: number
n13: number
n14: number
n21: number
n22: number
n23: number
n24: number
n31: number
n32: number
n33: number
n34: number
n41: number
n42: number
n43: number
n44: number
Returns
Matrix4
Defined in three.d.ts:2786
Sets the position component for this matrix from vector v.
Parameters
Returns
Vector3
public transpose( ) : Matrix4
Defined in three.d.ts:2776
Transposes this matrix.
Returns
Matrix4