diagrams-lib-0.1: src/Diagrams/TwoD/Types.hs
{-# 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
) where
import 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 R2
instance Transformable R2 where
transform = apply
-- | Type synonym used to represent angles in radians.
type Angle = Double