Module

GLMatrix.Mat3.Mix

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

#fromVec3 Source

fromVec3 :: Vec3 -> Vec3 -> Vec3 -> Mat3

#fromMat2d Source

fromMat2d :: Mat2d -> Mat3

Copies the values from a mat2d into a mat3

#fromMat4 Source

fromMat4 :: Mat4 -> Mat3

Copies the upper-left 3x3 values into the given mat3.

#fromQuat Source

fromQuat :: Quat -> Mat3

Calculates a 3x3 matrix from the given quaternion

#fromScaling Source

#fromTranslation Source

fromTranslation :: Vec2 -> Mat3

Creates a matrix from a vector translation This is equivalent to (but much faster than): mat3.identity(dest); mat3.translate(dest, dest, vec);

#normalFromMat4 Source

normalFromMat4 :: Mat4 -> Mat3

Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix

#scale Source

scale :: Mat3 -> Vec2 -> Mat3

Scales the mat3 by the dimensions in the given vec2

#translate Source

translate :: Mat3 -> Vec2 -> Mat3

Translate a mat3 by the given vector