Module
GLMatrix.Mat2d.Mix
- Package
- purescript-gl-matrix
- Repository
- dirkz/purescript-gl-matrix
#fromScaling Source
fromScaling :: Vec2 -> Mat2d
Creates a matrix from a vector scaling This is equivalent to (but much faster than): mat2d.identity(dest); mat2d.scale(dest, dest, vec);
#fromTranslation Source
fromTranslation :: Vec2 -> Mat2d
Creates a matrix from a vector translation This is equivalent to (but much faster than): mat2d.identity(dest); mat2d.translate(dest, dest, vec);