(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.
(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.
(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
(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' m)
Creates a new Matrix3 and with identical elements to this one.
Creates a new Matrix3 and with identical elements to this one.
(determinant m)
Computes and returns the determinant of this matrix.
Computes and returns the determinant of this matrix.
(equals m1 m2)
Return true if this matrix and m are equal.
Return true if this matrix and m are equal.
(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.
(multiply m1 m2)
Sets this matrix to m1 * m2.
Sets this matrix to m1 * m2.
(transpose m1)
Transposes this matrix in place.
Transposes this matrix in place.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close