Safe Haskell | None |
---|---|
Language | Haskell98 |
This module contains basic tools for geometric types and functions.
Synopsis
- 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 a Source #
Inverses an inversible matrix. If it is not inversible, The behaviour is undefined.
class Geometric g where Source #
A class for applying geometric applications to objects
leftMost :: (Double, Double) -> (Double, Double) -> (Double, Double) Source #
is the leftmost point between leftMost
a ba
and b
.
rightMost :: (Double, Double) -> (Double, Double) -> (Double, Double) Source #
is the rightmost point between rightMost
a ba
and b
.
topMost :: (Double, Double) -> (Double, Double) -> (Double, Double) Source #
is the upper point between topMost
a ba
and b
.
bottomMost :: (Double, Double) -> (Double, Double) -> (Double, Double) Source #
is the lower point between bottomMost
a ba
and b
.