Mat4

Description

Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts • Server Entity Scripts • Assignment Client Scripts

Methods

Name Return Value Summary
createFromArray Mat4
createFromColumns Mat4
createFromRotAndTrans Mat4
createFromScaleRotAndTrans Mat4
extractRotation Vec3
extractScale Vec3
extractTranslation Vec3
getForward Vec3
getFront Vec3
getRight Vec3
getUp Vec3
inverse Mat4
multiply Mat4
print None
transformPoint Vec3
transformVector Vec3

Method Details

(static) createFromArray( numbers ) → {Mat4}
Returns: Mat4

Parameters

Name Type Description
numbers Array.<number>
(static) createFromColumns( col0, col1, col2, col ) → {Mat4}
Returns: Mat4

Parameters

Name Type Description
col0 Vec4
col1 Vec4
col2 Vec4
col Vec4
(static) createFromRotAndTrans( rot, trans ) → {Mat4}
Returns: Mat4

Parameters

Name Type Description
rot Quat
trans Vec3
(static) createFromScaleRotAndTrans( scale, rot, trans ) → {Mat4}
Returns: Mat4

Parameters

Name Type Description
scale Vec3
rot Quat
trans Vec3
(static) extractRotation( m ) → {Vec3}
Returns: Vec3

Parameters

Name Type Description
m Mat4
(static) extractScale( m ) → {Vec3}
Returns: Vec3

Parameters

Name Type Description
m Mat4
(static) extractTranslation( m ) → {Vec3}
Returns: Vec3

Parameters

Name Type Description
m Mat4
(static) getForward( m ) → {Vec3}
Returns: Vec3

Parameters

Name Type Description
m Mat4
(static) getFront( m ) → {Vec3}
Returns: Vec3

Parameters

Name Type Description
m Mat4
(static) getRight( m ) → {Vec3}
Returns: Vec3

Parameters

Name Type Description
m Mat4
(static) getUp( m ) → {Vec3}
Returns: Vec3

Parameters

Name Type Description
m Mat4
(static) inverse( m ) → {Mat4}
Returns: Mat4

Parameters

Name Type Description
m Mat4
(static) multiply( m1, m2 ) → {Mat4}
Returns: Mat4

Parameters

Name Type Description
m1 Mat4
m2 Mat4
(static) print( label, m, transposeopt )

Parameters

Name Type Attributes Default Value Description
label string
m Mat4
transpose boolean <optional>
false
(static) transformPoint( m, point ) → {Vec3}
Returns: Vec3

Parameters

Name Type Description
m Mat4
point Vec3
(static) transformVector( m, vector ) → {Vec3}
Returns: Vec3

Parameters

Name Type Description
m Mat4
vector Vec3