Module

GLMatrix.Mat2.Mix

#js_fromScaling

#fromScaling

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);

#js_scale

#scale

scale :: Mat2 -> Vec2 -> Mat2

Scales the mat2 by the dimensions in the given vec2

Modules