This module contains basic tools for geometric types and functions.

- data Matrix2 a = Matrix2 a a a a
- inverse :: (Fractional a, Num a) => Matrix2 a -> Matrix2 a
- rotation :: Floating a => a -> Matrix2 a
- class Geometric g where
- leftMost :: (Double, Double) -> (Double, Double) -> (Double, Double)
- rightMost :: (Double, Double) -> (Double, Double) -> (Double, Double)
- topMost :: (Double, Double) -> (Double, Double) -> (Double, Double)
- bottomMost :: (Double, Double) -> (Double, Double) -> (Double, Double)

# Documentation

The type of the transformation matrices used in all geometrical applications.

Matrix2 a a a a | The application of |

inverse :: (Fractional a, Num a) => Matrix2 a -> Matrix2 aSource

Inverses an inversible matrix. If it is not inversible, The behaviour is undefined.

A class for applying geometric applications to objects

leftMost :: (Double, Double) -> (Double, Double) -> (Double, Double)Source

is the leftmost point between `leftMost`

a b`a`

and `b`

.

rightMost :: (Double, Double) -> (Double, Double) -> (Double, Double)Source

is the rightmost point between `rightMost`

a b`a`

and `b`

.

topMost :: (Double, Double) -> (Double, Double) -> (Double, Double)Source

is the upper point between `topMost`

a b`a`

and `b`

.

bottomMost :: (Double, Double) -> (Double, Double) -> (Double, Double)Source

is the lower point between `bottomMost`

a b`a`

and `b`

.