Module
GLMatrix.Mat2
- Package
- purescript-gl-matrix
- Repository
- dirkz/purescript-gl-matrix
#determinant Source
determinant :: Mat2 -> Number
Calculates the determinant of a mat2
#fromRotation Source
fromRotation :: Number -> Mat2
Creates a matrix from a given angle This is equivalent to (but much faster than): mat2.identity(dest); mat2.rotate(dest, dest, rad);
#multiplyScalar Source
multiplyScalar :: Mat2 -> Number -> Mat2
Multiply each element of the matrix by a scalar
#multiplyScalarAndAdd Source
multiplyScalarAndAdd :: Mat2 -> Mat2 -> Number -> Mat2
Adds two mat2's after multiplying each element of the second operand by a scalar value