Module

GLMatrix.Mat2d.Mix

#js_fromScaling

#fromScaling

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

#js_fromTranslation

#fromTranslation

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

#scale

scale :: Mat2d -> Vec2 -> Mat2d

Scales the Mat2d by the dimensions in the given vec2

#js_translate

#translate

translate :: Mat2d -> Vec2 -> Mat2d

Translate a mat2d by the given vector

#fromVec2

Modules