preview:api:matrix
This is an old revision of the document!
Table of Contents
matrix
Category: Data structure
Functions
setIdentity
void matrix.setIdentity(this)
Name | Type | Description |
---|---|---|
this | matrix |
setTranslation
void matrix.setTranslation(this, translation)
Name | Type | Description |
---|---|---|
this | matrix | |
translation | vec3f |
void matrix.setTranslation(this, x, y, z)
Name | Type | Description |
---|---|---|
this | matrix | |
x | float | |
y | float | |
z | float |
translate
void matrix.translate(this, translation)
Name | Type | Description |
---|---|---|
this | matrix | |
translation | vec3f |
void matrix.translate(this, x, y, z)
Name | Type | Description |
---|---|---|
this | matrix | |
x | float | |
y | float | |
z | float |
getTranslation
getScale
setScale
void matrix.setScale(this, x, y, z)
Name | Type | Description |
---|---|---|
this | matrix | |
x | float | |
y | float | |
z | float |
void matrix.setScale(this, scale)
Name | Type | Description |
---|---|---|
this | matrix | |
scale | vec3f |
setRotation
det
float matrix.det(this)
Name | Type | Description |
---|---|---|
this | matrix |
detUniform
float matrix.detUniform(this)
Name | Type | Description |
---|---|---|
this | matrix |
inverse
inverseUniform
getTransform
void matrix.getTransform(this, outTranslation, outOrientation, outScale)
Name | Type | Description |
---|---|---|
this | matrix | |
outTranslation | vec3f | Out argument |
outOrientation | quaternion | Out argument |
outScale | vec3f | Out argument |
transpose
transformPoint
vec3f matrix.transformPoint(this, v)
Name | Type | Description |
---|---|---|
this | matrix | |
v | vec3f |
vec3f matrix.transformPoint(this, v, outW)
Name | Type | Description |
---|---|---|
this | matrix | |
v | vec3f | |
outW | float | Out argument |
transformVector
vec3f matrix.transformVector(this, v)
Name | Type | Description |
---|---|---|
this | matrix | |
v | vec3f |
vec3f matrix.transformVector(this, v, outW)
Name | Type | Description |
---|---|---|
this | matrix | |
v | vec3f | |
outW | float | Out argument |
isIdentity
boolean matrix.isIdentity(this, epsilon)
Name | Type | Description |
---|---|---|
this | matrix | |
epsilon | float |
preview/api/matrix.1590164010.txt.gz · Last modified: 2020/05/22 12:13 by 127.0.0.1