Mat4

Methods

createFromArray(numbers) → {Mat4}
Parameters:
Name Type Description
numbers Array.<number>
Returns:
Type: Mat4
createFromColumns(col0, col1, col2, col) → {Mat4}
Parameters:
Name Type Description
col0 Vec4
col1 Vec4
col2 Vec4
col Vec4
Returns:
Type: Mat4
createFromRotAndTrans(rot, trans) → {Mat4}
Parameters:
Name Type Description
rot Quat
trans Vec3
Returns:
Type: Mat4
createFromScaleRotAndTrans(scale, rot, trans) → {Mat4}
Parameters:
Name Type Description
scale Vec3
rot Quat
trans Vec3
Returns:
Type: Mat4
extractRotation(m) → {Vec3}
Parameters:
Name Type Description
m Mat4
Returns:
Type: Vec3
extractScale(m) → {Vec3}
Parameters:
Name Type Description
m Mat4
Returns:
Type: Vec3
extractTranslation(m) → {Vec3}
Parameters:
Name Type Description
m Mat4
Returns:
Type: Vec3
getForward(m) → {Vec3}
Parameters:
Name Type Description
m Mat4
Returns:
Type: Vec3
getFront(m) → {Vec3}
Parameters:
Name Type Description
m Mat4
Returns:
Type: Vec3
getRight(m) → {Vec3}
Parameters:
Name Type Description
m Mat4
Returns:
Type: Vec3
getUp(m) → {Vec3}
Parameters:
Name Type Description
m Mat4
Returns:
Type: Vec3
inverse(m) → {Mat4}
Parameters:
Name Type Description
m Mat4
Returns:
Type: Mat4
multiply(m1, m2) → {Mat4}
Parameters:
Name Type Description
m1 Mat4
m2 Mat4
Returns:
Type: Mat4
print(label, m, transposeopt)
Parameters:
Name Type Attributes Default Description
label string
m Mat4
transpose boolean <optional>
false
transformPoint(m, point) → {Vec3}
Parameters:
Name Type Description
m Mat4
point Vec3
Returns:
Type: Vec3
transformVector(m, vector) → {Vec3}
Parameters:
Name Type Description
m Mat4
vector Vec3
Returns:
Type: Vec3