api:matrix
Table of Contents
matrix
Category: Data structure
Functions
setIdentity
void matrix.setIdentity(object)
Name | Type | Description |
---|---|---|
object | matrix |
setTranslation
void matrix.setTranslation(object, translation)
Name | Type | Description |
---|---|---|
object | matrix | |
translation | vec3f |
void matrix.setTranslation(object, x, y, z)
translate
void matrix.translate(object, translation)
Name | Type | Description |
---|---|---|
object | matrix | |
translation | vec3f |
void matrix.translate(object, x, y, z)
getTranslation
getScale
setScale
void matrix.setScale(object, x, y, z)
void matrix.setScale(object, scale)
Name | Type | Description |
---|---|---|
object | matrix | |
scale | vec3f |
setRotation
void matrix.setRotation(object, quaternion)
Name | Type | Description |
---|---|---|
object | matrix | |
quaternion | quaternion |
det
detUniform
inverse
inverseUniform
getTransform
void matrix.getTransform(object, outTranslation, outOrientation, outScale)
Name | Type | Description |
---|---|---|
object | matrix | |
outTranslation | vec3f | Out argument |
outOrientation | quaternion | Out argument |
outScale | vec3f | Out argument |
transpose
transformPoint
vec3f matrix.transformPoint(object, v)
Name | Type | Description |
---|---|---|
object | matrix | |
v | vec3f |
vec3f matrix.transformPoint(object, v, outW)
Name | Type | Description |
---|---|---|
object | matrix | |
v | vec3f | |
outW | float | Out argument |
transformVector
vec3f matrix.transformVector(object, v)
Name | Type | Description |
---|---|---|
object | matrix | |
v | vec3f |
vec3f matrix.transformVector(object, v, outW)
Name | Type | Description |
---|---|---|
object | matrix | |
v | vec3f | |
outW | float | Out argument |
isIdentity
api/matrix.txt · Last modified: 2024/02/06 13:53 by 127.0.0.1