Category: Data structure
void matrix.setIdentity(object)
Name | Type | Description |
---|---|---|
object | matrix |
void matrix.setTranslation(object, translation)
Name | Type | Description |
---|---|---|
object | matrix | |
translation | vec3f |
void matrix.setTranslation(object, x, y, z)
Name | Type | Description |
---|---|---|
object | matrix | |
x | float | |
y | float | |
z | float |
void matrix.translate(object, translation)
Name | Type | Description |
---|---|---|
object | matrix | |
translation | vec3f |
void matrix.translate(object, x, y, z)
Name | Type | Description |
---|---|---|
object | matrix | |
x | float | |
y | float | |
z | float |
void matrix.setScale(object, x, y, z)
Name | Type | Description |
---|---|---|
object | matrix | |
x | float | |
y | float | |
z | float |
void matrix.setScale(object, scale)
Name | Type | Description |
---|---|---|
object | matrix | |
scale | vec3f |
void matrix.setRotation(object, quaternion)
Name | Type | Description |
---|---|---|
object | matrix | |
quaternion | quaternion |
float matrix.det(object)
Name | Type | Description |
---|---|---|
object | matrix |
float matrix.detUniform(object)
Name | Type | Description |
---|---|---|
object | matrix |
void matrix.getTransform(object, outTranslation, outOrientation, outScale)
Name | Type | Description |
---|---|---|
object | matrix | |
outTranslation | vec3f | Out argument |
outOrientation | quaternion | Out argument |
outScale | vec3f | Out argument |
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 |
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 |
boolean matrix.isIdentity(object, epsilon)
Name | Type | Description |
---|---|---|
object | matrix | |
epsilon | float |