AC-Vector-2.3.2: Efficient geometric vectors and transformations.

Safe HaskellSafe-Infered

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 

Fields

t2_XX :: !Scalar
 
t2_YX :: !Scalar
 
t2_1X :: !Scalar
 
t2_XY :: !Scalar
 
t2_YY :: !Scalar
 
t2_1Y :: !Scalar
 

transformP2 :: Transform2 -> Vector2 -> Vector2Source

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