{-# LANGUAGE TypeFamilies , TypeSynonymInstances #-}{-# OPTIONS_GHC -fno-warn-orphans #-}------------------------------------------------------------------------------- |-- Module : Diagrams.TwoD.Types-- Copyright : (c) 2011 diagrams-lib team (see LICENSE)-- License : BSD-style (see LICENSE)-- Maintainer : diagrams-discuss@googlegroups.com---- Basic types for two-dimensional Cartesian space.-------------------------------------------------------------------------------module Diagrams.TwoD.Types ( R2 , P2 , Angle ) whereimport Graphics.Rendering.Diagrams-- | The two-dimensional Euclidean vector space R^2.type R2 = (Double, Double)type instance V R2 = R2-- | Points in R^2.type P2 = Point R2instance Transformable R2 where transform = apply-- | Type synonym used to represent angles in radians.type Angle = Double