AC-Vector-2.4.0: Efficient geometric vectors and transformations.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Vector.Transform.T2

Description

2-dimensional linear transformations.

Synopsis

Documentation

data Transform2 Source #

The type of 2D linear transformations.

Note the Monoid instance, which gives you access to the identity transform (mempty) and the ability to combine a series of transforms into a single transform (mappend).

Constructors

Transform2 

transformP2 :: Transform2 -> Vector2 -> Vector2 Source #

Apply a 2D transformation to a 2D point, yielding a new 2D point.