Liking cljdoc? Tell your friends :D

mathree.matrix3


from-matrix4cljs

(from-matrix4 m4)

Set this matrix to the upper 3x3 matrix of the Matrix4 m.

Set this matrix to the upper 3x3 matrix of the Matrix4 m.
sourceraw docstring

get-normal-matrixcljs

(get-normal-matrix m4)

m - Matrix4 Sets this matrix as the upper left 3x3 of the normal matrix of the passed matrix4. The normal matrix is the inverse transpose of the matrix m.

m - Matrix4
Sets this matrix as the upper left 3x3 of the normal matrix of the passed matrix4. The normal matrix is the inverse transpose of the matrix m.
sourceraw docstring

identity-matrix3cljs

(identity-matrix3)

Resets this matrix to the 3x3 identity matrix: 1, 0, 0 0, 1, 0 0, 0, 1

Resets this matrix to the 3x3 identity matrix:
1, 0, 0
0, 1, 0
0, 0, 1
sourceraw docstring

IMatrix3cljsprotocol

almost-equalscljs

(almost-equals m1 m2)

Return true if this matrix and m are almost equal. every element is less than 0.000001.

Return true if this matrix and m are almost equal. every element is less than 0.000001.

clone'cljs

(clone' m)

Creates a new Matrix3 and with identical elements to this one.

Creates a new Matrix3 and with identical elements to this one.

determinantcljs

(determinant m)

Computes and returns the determinant of this matrix.

Computes and returns the determinant of this matrix.

equalscljs

(equals m1 m2)

Return true if this matrix and m are equal.

Return true if this matrix and m are equal.

invertcljs

(invert m1)

Inverts this matrix, using the analytic method. You can not invert with a determinant of zero. If you attempt this, the method produces a zero matrix instead.

Inverts this matrix, using the analytic method. You can not invert with a determinant of zero. If you attempt this, the method produces a zero matrix instead.

multiplycljs

(multiply m1 m2)

Sets this matrix to m1 * m2.

Sets this matrix to m1 * m2.

transposecljs

(transpose m1)

Transposes this matrix in place.

Transposes this matrix in place.
source

matrix3cljs

(matrix3)
(matrix3 sq)

Constructor Matrix3() Creates and initializes the Matrix3 to the 3x3 identity matrix.

Constructor
Matrix3()
Creates and initializes the Matrix3 to the 3x3 identity matrix.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close