mat3 [object]
A 3x3 column-major matrix
- methods
- identity - set matrix to identity
- multiply - multiply this matrix with another one
- multiply_left - left-multiply this matrix with another one
- multiply2 - multiply two matrices into this one
- transpose - transpose matrix
- transpose_from - transpose another matrix into this one
- invert - invert matrix
- invert_from - invert another matrix into this one
- rotateX - set or multiply a X-axis rotation matrix
- rotateY - set or multiply a Y-axis rotation matrix
- rotateZ - set or multiply a Z-axis rotation matrix
- rotate_axis_angle - set or multiply a custom axis rotation matrix
- rotate_axis_angle_v3 - set or multiply a custom axis rotation matrix (vec3 argument)
- scale - set or multiply a scale matrix
- scale_v3 - set or multiply a scale matrix (vec3 argument)
- transform - transform a 3D vector
- read-only properties
- [int] size - returns 9 - the number of components in this vector
- [quat] quat - returns the quaternion version of this matrix
- [mat4] mat4 - returns a 4x4 version of this matrix, expanded with identity matrix data
- read/write properties
- [real] m[0-2][0-2]
- overloaded operators
- comparison between subvalues: column-major subvalue order
- other features:
- cloning support
- serialization support
- GC-safe
- indexing support for indices 0 - 8: returns/sets the specified subvalue
- tostring = "mat3"
- dump:
mat3 ( <m00> <m10> <m20> <m01> <m11> <m21> <m02> <m12> <m22> )