glsl-determinant
Computes the determinant of a matrix in glsl
Example
# det = require(glsl-determinant) void
Usage
Install with npm:
npm install glsl-determinant
Then use with glslify.
API
# determinant = require(glsl-determinant)
float d = determinant(float|mat2|mat3|mat4 m)
Computes the determinant of a matrix
m
is a matrix, eitherfloat, mat2, mat3
ormat4
Returns The determinant of m
License
(c) 2014 Mikola Lysenko. MIT License