Module
Data.Matrix4
- Package
- purescript-matrix
- Repository
- jutaro/purescript-matrix
Inspired by Mjs library for javascript
#inverseOrthonormal Source
inverseOrthonormal :: Mat4 -> Mat4
Computes the inverse of the given matrix m, assuming that the matrix is
#makeRotate Source
makeRotate :: Number -> Vec3N -> Mat4
Creates a transformation matrix for rotation in radians about the 3-element V.Vector axis.
#makeScale3 Source
makeScale3 :: Number -> Number -> Number -> Mat4
Creates a transformation matrix for scaling by 3 scalar values, one for
#makeTranslate3 Source
makeTranslate3 :: Number -> Number -> Number -> Mat4
Creates a transformation matrix for translating by 3 scalar values, one for
#makeTranslate Source
makeTranslate :: Vec3N -> Mat4
Creates a transformation matrix for translating each of the x, y, and z
#makeLookAt Source
makeLookAt :: Vec3N -> Vec3N -> Vec3N -> Mat4
Creates a transformation matrix for a camera.