packages feed

diagrams-lib-1.2.0.1 / src / Diagrams / ThreeD / Vector.hs

{-# LANGUAGE FlexibleContexts           , TypeFamilies           , ViewPatterns  #-}------------------------------------------------------------------------------- |-- Module      :  Diagrams.ThreeD.Vector-- Copyright   :  (c) 2013 diagrams-lib team (see LICENSE)-- License     :  BSD-style (see LICENSE)-- Maintainer  :  diagrams-discuss@googlegroups.com---- Three-dimensional vectors.-------------------------------------------------------------------------------module Diagrams.ThreeD.Vector       ( -- * Special 2D vectors         unitX, unitY, unitZ, unit_X, unit_Y, unit_Z,       ) whereimport Diagrams.Coordinatesimport Diagrams.ThreeD.Types-- | The unit vector in the positive X direction.unitX :: R3unitX = 1 ^& 0 ^& 0-- | The unit vector in the positive Y direction.unitY :: R3unitY = 0 ^& 1 ^& 0-- | The unit vector in the positive Z direction.unitZ :: R3unitZ = 0 ^& 0 ^& 1-- | The unit vector in the negative X direction.unit_X :: R3unit_X = (-1) ^& 0 ^& 0-- | The unit vector in the negative Y direction.unit_Y :: R3unit_Y = 0 ^& (-1) ^& 0-- | The unit vector in the negative Z direction.unit_Z :: R3unit_Z = 0 ^& 0 ^& (-1)