Struct mat4

float matrix 4 x 4

Constructors

Name Description
this
this
this

Fields

Name Type Description
m float[16]

Properties

Name Type Description
dump [get] string

Methods

Name Description
fill fill all items of matrix with specified value
identity creates identity matrix
invert
lookAt
mul multiply two matrices
opAssign
opAssign
opAssign
opBinary multiply matrix by vec4
opBinary multiply matrix by vec3
opBinary add scalar to all items of matrix
opBinary multiply this matrix by scalar
opBinary multiply this matrix by another matrix
opIndex scalar index by rows then (y*4 + x)
opIndex 2d index by row, col
opOpAssign divide all components of vector by matrix
opOpAssign subtract value from all components of matrix
opOpAssign add value to all components of matrix
opOpAssign multiply all components of matrix by value
opOpAssign multiply this matrix by another matrix
rotate
rotate
rotatex inplace rotate around X axis
rotateX
rotatey inplace rotate around Y axis
rotateY
rotatez inplace rotate around Z axis
rotateZ
scale
scale
scale
setDiagonal set to diagonal: fill all items of matrix with zero except main diagonal items which will be assigned to v
setIdentity set to identity: fill all items of matrix with zero except main diagonal items which will be assigned to 1.0f
setLookAt
setOrtho
setPerspective
setZero fill all items of matrix with zero
translate
translate
translation
zero creates zero matrix

Authors

Copyright

License