API Docs for: 0.5.5
Show:

kick.math.Mat3 Class

Defined in: kick/math/Mat3.js:4
Module: kick.math

Mat3 - 3x3 Matrix

Item Index

Methods

Methods

adjoint

(
  • out
  • a
)
kick.math.Mat3 static

Calculates the adjugate of a mat3

Parameters:

Returns:

clone

(
  • a
)
kick.math.Mat3 static

Creates a new mat3 initialized with values from an existing matrix

Parameters:

Returns:

kick.math.Mat3:

a new 3x3 matrix

copy

(
  • out
  • a
)
kick.math.Mat3 static

Copies the values of one mat3 to another

Parameters:

Returns:

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:

kick.math.Mat3:

New mat3

determinant

(
  • a
)
Number static

Calculates the determinant of a Mat3

Parameters:

Returns:

Number:

determinant of a matrix

fromMat2d

(
  • out
  • a
)
kick.math.Mat3 static

Copies the values from a mat2d into a mat3

Parameters:

Returns:

fromMat4

(
  • out
  • a
)
kick.math.Mat3

Copies the upper-left 3x3 values into the given mat3.

Parameters:

Returns:

fromQuat

(
  • out
  • q
)
kick.math.Mat3 static

Calculates a 3x3 matrix from the given quaternion

Parameters:

Returns:

identity

(
  • out
)
kick.math.Mat3 static

Sets a mat3 to an identity matrix

Parameters:

Returns:

invert

(
  • out
  • a
)
kick.math.Mat3 static

Inverts a Mat3

Parameters:

Returns:

multiply

(
  • out
  • a
  • b
)
kick.math.Mat3 static

Multiplies two mat3's

Parameters:

Returns:

rotate

(
  • out
  • a
  • rad
)
kick.math.Mat3 static

Rotates a mat3 by the given angle

Parameters:

Returns:

scale

(
  • out
  • a
  • v
)
kick.math.Mat3 static

Scales the mat3 by the dimensions in the given vec2

Parameters:

Returns:

str

(
  • mat
)
String static

Returns a string representation of a mat3

Parameters:

Returns:

String:

string representation of mat

strPretty

(
  • mat
)
String static

Returns a string representation of a mat3 printed as a 4x4 matrix (on 3 lines)

Parameters:

Returns:

String:

string representation of mat

toMat4

(
  • out
  • mat
)
kick.math.Mat4 static

Copies the elements of a mat3 into the upper 3x3 elements of a mat4

Parameters:

Returns:

toQuat

(
  • out
  • mat
)
kick.math.Quat static

Transform a mat3 into a rotation (quaternion).

Parameters:

Returns:

translate

(
  • out
  • a
  • v
)
kick.math.Mat3 static

Translate a mat3 by the given vector

Parameters:

Returns:

transpose

(
  • out
  • a
)
kick.math.Mat3 static

Transposes a mat3 (flips the values over the diagonal)

Parameters:

Returns: