Module

GLMatrix.Mat2.Mix

Package
purescript-gl-matrix
Repository
dirkz/purescript-gl-matrix

#fromScaling Source

fromScaling :: Vec2 -> Mat2

Creates a matrix from a vector scaling This is equivalent to (but much faster than): mat2.identity(dest); mat2.scale(dest, dest, vec);

#scale Source

scale :: Mat2 -> Vec2 -> Mat2

Scales the mat2 by the dimensions in the given vec2