User Tools

Site Tools


api:matrix

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)

Name Type Description
object matrix
x float
y float
z float

translate

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

getTranslation

vec3f matrix.getTranslation(object)

Name Type Description
object matrix

getScale

vec3f matrix.getScale(object)

Name Type Description
object matrix

setScale

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

setRotation

void matrix.setRotation(object, quaternion)

Name Type Description
object matrix
quaternion quaternion

det

float matrix.det(object)

Name Type Description
object matrix

detUniform

float matrix.detUniform(object)

Name Type Description
object matrix

inverse

matrix matrix.inverse(object)

Name Type Description
object matrix

inverseUniform

matrix matrix.inverseUniform(object)

Name Type Description
object matrix

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

matrix matrix.transpose(object)

Name Type Description
object matrix

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

boolean matrix.isIdentity(object, epsilon)

Name Type Description
object matrix
epsilon float
api/matrix.txt · Last modified: 2020/08/14 17:05 (external edit)