kick.math.Mat3 Class
Mat3 - 3x3 Matrix
Item Index
Methods
adjoint
-
out
-
a
Calculates the adjugate of a mat3
Parameters:
-
out
kick.math.Mat3the receiving matrix
-
a
kick.math.Mat3the source matrix
Returns:
out
clone
-
a
Creates a new mat3 initialized with values from an existing matrix
Parameters:
-
a
kick.math.Mat3matrix to clone
Returns:
a new 3x3 matrix
copy
-
out
-
a
Copies the values of one mat3 to another
Parameters:
-
out
kick.math.Mat3the receiving matrix
-
a
kick.math.Mat3the source matrix
Returns:
out
create
()
kick.math.Mat3
static
Creates a new identity Mat3 using the default array type
Any javascript array containing at least 9 numeric elements can serve as a mat3
Returns:
New mat3
determinant
-
a
Calculates the determinant of a Mat3
Parameters:
-
a
kick.math.Mat3the source matrix
Returns:
determinant of a matrix
fromMat2d
-
out
-
a
Copies the values from a mat2d into a mat3
Parameters:
-
out
kick.math.Mat3the receiving matrix
-
a
kick.math.Mat3the matrix to rotate
Returns:
out
fromMat4
-
out
-
a
Copies the upper-left 3x3 values into the given mat3.
Parameters:
-
out
kick.math.Mat3the receiving 3x3 matrix
-
a
kick.math.Mat4the source 4x4 matrix
Returns:
out
fromQuat
-
out
-
q
Calculates a 3x3 matrix from the given quaternion
Parameters:
-
out
kick.math.Mat3mat3 receiving operation result
-
q
kick.math.QuatQuaternion to create matrix from
Returns:
out
identity
-
out
Sets a mat3 to an identity matrix
Parameters:
-
out
kick.math.Mat3mat3 to set
Returns:
dest
invert
-
out
-
a
Inverts a Mat3
Parameters:
-
out
kick.math.Mat3the receiving matrix
-
a
kick.math.Mat3the source matrix
Returns:
out
multiply
-
out
-
a
-
b
Multiplies two mat3's
Parameters:
-
out
kick.math.Mat3the receiving matrix
-
a
kick.math.Mat3the first operand
-
b
kick.math.Mat3the second operand
Returns:
out
rotate
-
out
-
a
-
rad
Rotates a mat3 by the given angle
Parameters:
-
out
kick.math.Mat3the receiving matrix
-
a
kick.math.Mat3the matrix to rotate
-
rad
Numberthe angle to rotate the matrix by
Returns:
out
scale
-
out
-
a
-
v
Scales the mat3 by the dimensions in the given vec2
Parameters:
-
out
kick.math.Mat3the receiving matrix
-
a
kick.math.Mat3the matrix to rotate
-
v
kick.math.Vec2the vec2 to scale the matrix by
Returns:
out
str
-
mat
Returns a string representation of a mat3
Parameters:
-
mat
kick.math.Mat3mat3 to represent as a string
Returns:
string representation of mat
strPretty
-
mat
Returns a string representation of a mat3 printed as a 4x4 matrix (on 3 lines)
Parameters:
-
mat
kick.math.Mat3mat3 to represent as a string
Returns:
string representation of mat
toMat4
-
out
-
mat
Copies the elements of a mat3 into the upper 3x3 elements of a mat4
Parameters:
-
out
kick.math.Mat4mat4 receiving copied values
-
mat
kick.math.Mat3mat3 containing values to copy
Returns:
out
toQuat
-
out
-
mat
Transform a mat3 into a rotation (quaternion).
Parameters:
-
out
kick.math.Quat -
mat
kick.math.Mat3
Returns:
translate
-
out
-
a
-
v
Translate a mat3 by the given vector
Parameters:
-
out
kick.math.Mat3the receiving matrix
-
a
kick.math.Mat3the matrix to translate
-
v
kick.math.Vec2vector to translate by
Returns:
out
transpose
-
out
-
a
Transposes a mat3 (flips the values over the diagonal)
Parameters:
-
out
kick.math.Mat3the receiving matrix
-
a
kick.math.Mat3the source matrix
Returns:
out