Module

GLMatrix.Mat3

#Mat3

data Mat3 :: Type

Instances

#add

add :: Mat3 -> Mat3 -> Mat3

Adds two Mat3's

#adjoint

adjoint :: Mat3 -> Mat3

Calculates the adjugate of a Mat3

#determinant

determinant :: Mat3 -> Number

Calculates the determinant of a Mat3

#equals

equals :: Mat3 -> Mat3 -> Boolean

Returns whether or not the matrices have approximately the same elements in the same position

#frob

frob :: Mat3 -> Number

Returns Frobenius norm of a Mat3

#fromRotation

fromRotation :: Number -> Mat3

Creates a matrix from a given angle This is equivalent to (but much faster than): mat3.identity(dest); mat3.rotate(dest, dest, rad);

#fromValues

fromValues :: Number -> Number -> Number -> Number -> Number -> Number -> Number -> Number -> Number -> Mat3

Create a new Mat3 with the given values

#identity

identity :: Mat3

Set a Mat3 to the identity matrix

#invert

invert :: Mat3 -> Mat3

Inverts a Mat3

#multiply

multiply :: Mat3 -> Mat3 -> Mat3

Multiplies two Mat3's

#multiplyScalar

multiplyScalar :: Mat3 -> Number -> Mat3

Multiply each element of the matrix by a scalar

#multiplyScalarAndAdd

multiplyScalarAndAdd :: Mat3 -> Mat3 -> Number -> Mat3

Adds two Mat3's after multiplying each element of the second operand by a scalar value

#projection

projection :: Number -> Number -> Mat3

Generates a 2D projection matrix with the given bounds

#rotate

rotate :: Mat3 -> Number -> Mat3

Rotates a Mat3 by the given angle

#rotationX

rotationX :: Number -> Mat3

Creates a rotation matrix around the x-axis

#rotationY

rotationY :: Number -> Mat3

Creates a rotation matrix around the y-axis

#rotationZ

rotationZ :: Number -> Mat3

Creates a rotation matrix around the z-axis

#subtract

subtract :: Mat3 -> Mat3 -> Mat3

Subtracts matrix b from matrix a

#transpose

transpose :: Mat3 -> Mat3

Transpose the values of a Mat3

#numbers

numbers :: Mat3 -> Array Number

Extract a number array

#map

map :: (Number -> Number) -> Mat3 -> Mat3

Map a function from Number to Number over it. Note: Since this is not a general container, it cannot be a Functor.

#unsafeFromNumbers

unsafeFromNumbers :: Partial => Array Number -> Mat3

Create a matrix from an array produced by numbers.

#zipWith

zipWith :: (Number -> Number -> Number) -> Mat3 -> Mat3 -> Mat3

#slice

slice :: Int -> Int -> Mat3 -> Array Number

Like Array.slice

Modules