Module

GLMatrix.Mat3.Mix

#fromVec3

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

#fromMat2d

fromMat2d :: Mat2d -> Mat3

Copies the values from a mat2d into a mat3

#fromMat4

fromMat4 :: Mat4 -> Mat3

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

#fromQuat

fromQuat :: Quat -> Mat3

Calculates a 3x3 matrix from the given quaternion

#fromScaling

#fromTranslation

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

normalFromMat4 :: Mat4 -> Mat3

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

#scale

scale :: Mat3 -> Vec2 -> Mat3

Scales the mat3 by the dimensions in the given vec2

#translate

translate :: Mat3 -> Vec2 -> Mat3

Translate a mat3 by the given vector

Modules