diagrams-lib-1.5.1: Embedded domain-specific language for declarative graphics

Copyright | (c) 2011 diagrams-lib team (see LICENSE)
License | BSD-style (see LICENSE)
Maintainer | diagrams-discuss@googlegroups.com
Safe Haskell | None
Language | Haskell2010

Diagrams.ThreeD.Types

Contents

- 3D Euclidean space
- Orphan instances

Description

Basic types for three-dimensional Euclidean space.

Synopsis

- r3 :: (n, n, n) -> V3 n
- unr3 :: V3 n -> (n, n, n)
- mkR3 :: n -> n -> n -> V3 n
- p3 :: (n, n, n) -> P3 n
- unp3 :: P3 n -> (n, n, n)
- mkP3 :: n -> n -> n -> P3 n
- r3Iso :: forall n p f. (Profunctor p, Functor f) => p (n, n, n) (f (n, n, n)) -> p (V3 n) (f (V3 n))
- p3Iso :: forall n p f. (Profunctor p, Functor f) => p (n, n, n) (f (n, n, n)) -> p (P3 n) (f (P3 n))
- project :: (Metric v, Fractional a) => v a -> v a -> v a
- r3SphericalIso :: RealFloat n => Iso' (V3 n) (n, Angle n, Angle n)
- r3CylindricalIso :: RealFloat n => Iso' (V3 n) (n, Angle n, n)
- data V3 a = V3 !a !a !a
- type P3 = Point V3
- type T3 = Transformation V3
- class R1 (t :: Type -> Type) where
  - _x :: Lens' (t a) a
- class R1 t => R2 (t :: Type -> Type) where
  - _y :: Lens' (t a) a
  - _xy :: Lens' (t a) (V2 a)
- class R2 t => R3 (t :: Type -> Type) where
  - _z :: Lens' (t a) a
  - _xyz :: Lens' (t a) (V3 a)

# 3D Euclidean space

r3 :: (n, n, n) -> V3 n Source #

Construct a 3D vector from a triple of components.

unr3 :: V3 n -> (n, n, n) Source #

Convert a 3D vector back into a triple of components.

mkR3 :: n -> n -> n -> V3 n Source #

Curried version of `r3`.

p3 :: (n, n, n) -> P3 n Source #

Construct a 3D point from a triple of coordinates.

unp3 :: P3 n -> (n, n, n) Source #

Convert a 3D point back into a triple of coordinates.

mkP3 :: n -> n -> n -> P3 n Source #

Curried version of `r3`.

r3Iso :: forall n p f. (Profunctor p, Functor f) => p (n, n, n) (f (n, n, n)) -> p (V3 n) (f (V3 n)) Source #

p3Iso :: forall n p f. (Profunctor p, Functor f) => p (n, n, n) (f (n, n, n)) -> p (P3 n) (f (P3 n)) Source #

project :: (Metric v, Fractional a) => v a -> v a -> v a Source #

`project u v` computes the projection of `v` onto `u`.

r3SphericalIso :: RealFloat n => Iso' (V3 n) (n, Angle n, Angle n) Source #

r3CylindricalIso :: RealFloat n => Iso' (V3 n) (n, Angle n, n) Source #

data V3 a Source #

A 3-dimensional vector

Constructors

V3 !a !a !a |

#### Instances

Instances details

Representable V3 |

Instance details

Defined in Linear.V3

Associated Types

type Rep V3 |
Instance details Defined in Linear.V3 type Rep V3 = E V3

Methods

tabulate :: (Rep V3 -> a) -> V3 a Source #

index :: V3 a -> Rep V3 -> a Source #

MonadZip V3 |
Instance details Defined in Linear.V3 Methods mzip :: V3 a -> V3 b -> V3 (a, b) Source # mzipWith :: (a -> b -> c) -> V3 a -> V3 b -> V3 c Source # munzip :: V3 (a, b) -> (V3 a, V3 b) Source #
Foldable1 V3 |

Instance details

Defined in Linear.V3

Methods

fold1 :: Semigroup m => V3 m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> V3 a -> m Source #

foldMap1' :: Semigroup m => (a -> m) -> V3 a -> m Source #

toNonEmpty :: V3 a -> NonEmpty a Source #

maximum :: Ord a => V3 a -> a Source #

minimum :: Ord a => V3 a -> a Source #

head :: V3 a -> a Source #

last :: V3 a -> a Source #

foldrMap1 :: (a -> b) -> (a -> b -> b) -> V3 a -> b Source #

foldlMap1' :: (a -> b) -> (b -> a -> b) -> V3 a -> b Source #

foldlMap1 :: (a -> b) -> (b -> a -> b) -> V3 a -> b Source #

foldrMap1' :: (a -> b) -> (a -> b -> b) -> V3 a -> b Source #

Eq1 V3 |
Instance details Defined in Linear.V3 Methods liftEq :: (a -> b -> Bool) -> V3 a -> V3 b -> Bool Source #
Ord1 V3 |
Instance details Defined in Linear.V3 Methods liftCompare :: (a -> b -> Ordering) -> V3 a -> V3 b -> Ordering Source #
Read1 V3 |
Instance details Defined in Linear.V3 Methods liftReadsPrec :: (Int -> ReadS a) -> ReadS [a] -> Int -> ReadS (V3 a) Source # liftReadList :: (Int -> ReadS a) -> ReadS [a] -> ReadS [V3 a] Source # liftReadPrec :: ReadPrec a -> ReadPrec [a] -> ReadPrec (V3 a) Source # liftReadListPrec :: ReadPrec a -> ReadPrec [a] -> ReadPrec [V3 a] Source #
Show1 V3 |
Instance details Defined in Linear.V3 Methods liftShowsPrec :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> V3 a -> ShowS Source # liftShowList :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> [V3 a] -> ShowS Source #
Serial1 V3 |
Instance details Defined in Linear.V3 Methods serializeWith :: MonadPut m => (a -> m ()) -> V3 a -> m () deserializeWith :: MonadGet m => m a -> m (V3 a)
HasPhi V3 Source # |
Instance details Defined in Diagrams.ThreeD.Types Methods _phi :: RealFloat n => Lens' (V3 n) (Angle n) Source #
HasTheta V3 Source # |
Instance details Defined in Diagrams.ThreeD.Types Methods _theta :: RealFloat n => Lens' (V3 n) (Angle n) Source #
HasR V3 Source # |
Instance details Defined in Diagrams.ThreeD.Types Methods _r :: RealFloat n => Lens' (V3 n) n Source #
Distributive V3 |
Instance details Defined in Linear.V3 Methods distribute :: Functor f => f (V3 a) -> V3 (f a) Source # collect :: Functor f => (a -> V3 b) -> f a -> V3 (f b) Source # distributeM :: Monad m => m (V3 a) -> V3 (m a) Source # collectM :: Monad m => (a -> V3 b) -> m a -> V3 (m b) Source #
Applicative V3 |
Instance details Defined in Linear.V3 Methods pure :: a -> V3 a Source # (<*>) :: V3 (a -> b) -> V3 a -> V3 b Source # liftA2 :: (a -> b -> c) -> V3 a -> V3 b -> V3 c Source # (*>) :: V3 a -> V3 b -> V3 b Source # (<*) :: V3 a -> V3 b -> V3 a Source #
Functor V3 |
Instance details Defined in Linear.V3 Methods fmap :: (a -> b) -> V3 a -> V3 b Source # (<$) :: a -> V3 b -> V3 a Source #
Monad V3 |
Instance details Defined in Linear.V3 Methods (>>=) :: V3 a -> (a -> V3 b) -> V3 b Source # (>>) :: V3 a -> V3 b -> V3 b Source # return :: a -> V3 a Source #
MonadFix V3 |
Instance details Defined in Linear.V3 Methods mfix :: (a -> V3 a) -> V3 a Source #
Foldable V3 |

Instance details

Defined in Linear.V3

Methods

fold :: Monoid m => V3 m -> m Source #

foldMap :: Monoid m => (a -> m) -> V3 a -> m Source #

foldMap' :: Monoid m => (a -> m) -> V3 a -> m Source #

foldr :: (a -> b -> b) -> b -> V3 a -> b Source #

foldr' :: (a -> b -> b) -> b -> V3 a -> b Source #

foldl :: (b -> a -> b) -> b -> V3 a -> b Source #

foldl' :: (b -> a -> b) -> b -> V3 a -> b Source #

foldr1 :: (a -> a -> a) -> V3 a -> a Source #

foldl1 :: (a -> a -> a) -> V3 a -> a Source #

toList :: V3 a -> [a] Source #

null :: V3 a -> Bool Source #

length :: V3 a -> Int Source #

elem :: Eq a => a -> V3 a -> Bool Source #

maximum :: Ord a => V3 a -> a Source #

minimum :: Ord a => V3 a -> a Source #

sum :: Num a => V3 a -> a Source #

product :: Num a => V3 a -> a Source #

Traversable V3 |
Instance details Defined in Linear.V3 Methods traverse :: Applicative f => (a -> f b) -> V3 a -> f (V3 b) Source # sequenceA :: Applicative f => V3 (f a) -> f (V3 a) Source # mapM :: Monad m => (a -> m b) -> V3 a -> m (V3 b) Source # sequence :: Monad m => V3 (m a) -> m (V3 a) Source #
Hashable1 V3 |
Instance details Defined in Linear.V3 Methods liftHashWithSalt :: (Int -> a -> Int) -> Int -> V3 a -> Int Source #
Affine V3 |

Instance details

Defined in Linear.Affine

Associated Types

type Diff V3 |
Instance details Defined in Linear.Affine type Diff V3 = V3

Methods

(.-.) :: Num a => V3 a -> V3 a -> Diff V3 a Source #

(.+^) :: Num a => V3 a -> Diff V3 a -> V3 a Source #

(.-^) :: Num a => V3 a -> Diff V3 a -> V3 a Source #

Metric V3 |
Instance details Defined in Linear.V3 Methods dot :: Num a => V3 a -> V3 a -> a Source # quadrance :: Num a => V3 a -> a Source # qd :: Num a => V3 a -> V3 a -> a Source # distance :: Floating a => V3 a -> V3 a -> a Source # norm :: Floating a => V3 a -> a Source # signorm :: Floating a => V3 a -> V3 a Source #
Trace V3 |
Instance details Defined in Linear.Trace Methods trace :: Num a => V3 (V3 a) -> a Source # diagonal :: V3 (V3 a) -> V3 a Source #
Finite V3 |

Instance details

Defined in Linear.V3

Associated Types

type Size V3 |
Instance details Defined in Linear.V3 type Size V3 = 3

Methods

toV :: V3 a -> V (Size V3) a Source #

fromV :: V (Size V3) a -> V3 a Source #

R1 V3 |
Instance details Defined in Linear.V3 Methods _x :: Lens' (V3 a) a Source #
R2 V3 |
Instance details Defined in Linear.V3 Methods _y :: Lens' (V3 a) a Source # _xy :: Lens' (V3 a) (V2 a) Source #
R3 V3 |
Instance details Defined in Linear.V3 Methods _z :: Lens' (V3 a) a Source # _xyz :: Lens' (V3 a) (V3 a) Source #
Additive V3 |
Instance details Defined in Linear.V3 Methods zero :: Num a => V3 a Source # (^+^) :: Num a => V3 a -> V3 a -> V3 a Source # (^-^) :: Num a => V3 a -> V3 a -> V3 a Source # lerp :: Num a => a -> V3 a -> V3 a -> V3 a Source # liftU2 :: (a -> a -> a) -> V3 a -> V3 a -> V3 a Source # liftI2 :: (a -> b -> c) -> V3 a -> V3 b -> V3 c Source #
Apply V3 |
Instance details Defined in Linear.V3 Methods (<.>) :: V3 (a -> b) -> V3 a -> V3 b (.>) :: V3 a -> V3 b -> V3 b (<.) :: V3 a -> V3 b -> V3 a liftF2 :: (a -> b -> c) -> V3 a -> V3 b -> V3 c
Bind V3 |
Instance details Defined in Linear.V3 Methods (>>-) :: V3 a -> (a -> V3 b) -> V3 b join :: V3 (V3 a) -> V3 a
Traversable1 V3 |
Instance details Defined in Linear.V3 Methods traverse1 :: Apply f => (a -> f b) -> V3 a -> f (V3 b) # sequence1 :: Apply f => V3 (f b) -> f (V3 b)
Generic1 V3 |

Instance details

Defined in Linear.V3

Associated Types

type Rep1 V3 |

Instance details

Defined in Linear.V3

type Rep1 V3 = D1 ('MetaData "V3" "Linear.V3" "linear-1.23.2-5AqyVb8sK1m3MfzHCRCQd3" 'False) (C1 ('MetaCons "V3" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1 :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1 :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1)))

Methods

from1 :: V3 a -> Rep1 V3 a Source #

to1 :: Rep1 V3 a -> V3 a Source #

Num r => Coalgebra r (E V3) |
Instance details Defined in Linear.Algebra Methods comult :: (E V3 -> r) -> E V3 -> E V3 -> r Source # counital :: (E V3 -> r) -> r Source #
Lift a => Lift (V3 a :: Type) |
Instance details Defined in Linear.V3 Methods lift :: Quote m => V3 a -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => V3 a -> Code m (V3 a) Source #
Unbox a => Vector Vector (V3 a) |

Instance details

Defined in Linear.V3

Methods

basicUnsafeFreeze :: Mutable Vector s (V3 a) -> ST s (Vector (V3 a))

basicUnsafeThaw :: Vector (V3 a) -> ST s (Mutable Vector s (V3 a))

basicLength :: Vector (V3 a) -> Int

basicUnsafeSlice :: Int -> Int -> Vector (V3 a) -> Vector (V3 a)

basicUnsafeIndexM :: Vector (V3 a) -> Int -> Box (V3 a)

basicUnsafeCopy :: Mutable Vector s (V3 a) -> Vector (V3 a) -> ST s ()

elemseq :: Vector (V3 a) -> V3 a -> b -> b

Unbox a => MVector MVector (V3 a) |

Instance details

Defined in Linear.V3

Methods

basicLength :: MVector s (V3 a) -> Int

basicUnsafeSlice :: Int -> Int -> MVector s (V3 a) -> MVector s (V3 a)

basicOverlaps :: MVector s (V3 a) -> MVector s (V3 a) -> Bool

basicUnsafeNew :: Int -> ST s (MVector s (V3 a))

basicInitialize :: MVector s (V3 a) -> ST s ()

basicUnsafeReplicate :: Int -> V3 a -> ST s (MVector s (V3 a))

basicUnsafeRead :: MVector s (V3 a) -> Int -> ST s (V3 a)

basicUnsafeWrite :: MVector s (V3 a) -> Int -> V3 a -> ST s ()

basicClear :: MVector s (V3 a) -> ST s ()

basicSet :: MVector s (V3 a) -> V3 a -> ST s ()

basicUnsafeCopy :: MVector s (V3 a) -> MVector s (V3 a) -> ST s ()

basicUnsafeMove :: MVector s (V3 a) -> MVector s (V3 a) -> ST s ()

basicUnsafeGrow :: MVector s (V3 a) -> Int -> ST s (MVector s (V3 a))

Binary a => Binary (V3 a) |
Instance details Defined in Linear.V3 Methods put :: V3 a -> Put Source # get :: Get (V3 a) Source # putList :: [V3 a] -> Put Source #
Serial a => Serial (V3 a) |
Instance details Defined in Linear.V3 Methods serialize :: MonadPut m => V3 a -> m () deserialize :: MonadGet m => m (V3 a)
Serialize a => Serialize (V3 a) |
Instance details Defined in Linear.V3 Methods put :: Putter (V3 a) Source # get :: Get (V3 a) Source #
NFData a => NFData (V3 a) |
Instance details Defined in Linear.V3 Methods rnf :: V3 a -> () Source #
Transformable (V3 n) Source # |
Instance details Defined in Diagrams.ThreeD.Types Methods transform :: Transformation (V (V3 n)) (N (V3 n)) -> V3 n -> V3 n Source #
Coordinates (V3 n) Source # |

Instance details

Defined in Diagrams.Coordinates

Associated Types

type FinalCoord (V3 n) |
Instance details Defined in Diagrams.Coordinates type FinalCoord (V3 n) = n
type PrevDim (V3 n) |
Instance details Defined in Diagrams.Coordinates type PrevDim (V3 n) = V2 n
type Decomposition (V3 n) |
Instance details Defined in Diagrams.Coordinates type Decomposition (V3 n) = (n :& n) :& n

Methods

(^&) :: PrevDim (V3 n) -> FinalCoord (V3 n) -> V3 n Source #

pr :: PrevDim (V3 n) -> FinalCoord (V3 n) -> V3 n Source #

coords :: V3 n -> Decomposition (V3 n) Source #

Monoid a => Monoid (V3 a) |
Instance details Defined in Linear.V3 Methods mempty :: V3 a Source # mappend :: V3 a -> V3 a -> V3 a Source # mconcat :: [V3 a] -> V3 a Source #
Semigroup a => Semigroup (V3 a) |
Instance details Defined in Linear.V3 Methods (<>) :: V3 a -> V3 a -> V3 a Source # sconcat :: NonEmpty (V3 a) -> V3 a Source # stimes :: Integral b => b -> V3 a -> V3 a Source #
Data a => Data (V3 a) |

Instance details

Defined in Linear.V3

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> V3 a -> c (V3 a) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (V3 a) Source #

toConstr :: V3 a -> Constr Source #

dataTypeOf :: V3 a -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (V3 a)) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (V3 a)) Source #

gmapT :: (forall b. Data b => b -> b) -> V3 a -> V3 a Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> V3 a -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> V3 a -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> V3 a -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> V3 a -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> V3 a -> m (V3 a) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> V3 a -> m (V3 a) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> V3 a -> m (V3 a) Source #

Bounded a => Bounded (V3 a) |
Instance details Defined in Linear.V3 Methods minBound :: V3 a Source # maxBound :: V3 a Source #
Floating a => Floating (V3 a) |

Instance details

Defined in Linear.V3

Methods

pi :: V3 a Source #

exp :: V3 a -> V3 a Source #

log :: V3 a -> V3 a Source #

sqrt :: V3 a -> V3 a Source #

(**) :: V3 a -> V3 a -> V3 a Source #

logBase :: V3 a -> V3 a -> V3 a Source #

sin :: V3 a -> V3 a Source #

cos :: V3 a -> V3 a Source #

tan :: V3 a -> V3 a Source #

asin :: V3 a -> V3 a Source #

acos :: V3 a -> V3 a Source #

atan :: V3 a -> V3 a Source #

sinh :: V3 a -> V3 a Source #

cosh :: V3 a -> V3 a Source #

tanh :: V3 a -> V3 a Source #

asinh :: V3 a -> V3 a Source #

acosh :: V3 a -> V3 a Source #

atanh :: V3 a -> V3 a Source #

log1p :: V3 a -> V3 a Source #

expm1 :: V3 a -> V3 a Source #

log1pexp :: V3 a -> V3 a Source #

log1mexp :: V3 a -> V3 a Source #

Storable a => Storable (V3 a) |

Instance details

Defined in Linear.V3

Methods

sizeOf :: V3 a -> Int Source #

alignment :: V3 a -> Int Source #

peekElemOff :: Ptr (V3 a) -> Int -> IO (V3 a) Source #

pokeElemOff :: Ptr (V3 a) -> Int -> V3 a -> IO () Source #

peekByteOff :: Ptr b -> Int -> IO (V3 a) Source #

pokeByteOff :: Ptr b -> Int -> V3 a -> IO () Source #

peek :: Ptr (V3 a) -> IO (V3 a) Source #

poke :: Ptr (V3 a) -> V3 a -> IO () Source #

Generic (V3 a) |

Instance details

Defined in Linear.V3

Associated Types

type Rep (V3 a) |

Instance details

Defined in Linear.V3

type Rep (V3 a) = D1 ('MetaData "V3" "Linear.V3" "linear-1.23.2-5AqyVb8sK1m3MfzHCRCQd3" 'False) (C1 ('MetaCons "V3" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a))))

Methods

from :: V3 a -> Rep (V3 a) x Source #

to :: Rep (V3 a) x -> V3 a Source #

Ix a => Ix (V3 a) |
Instance details Defined in Linear.V3 Methods range :: (V3 a, V3 a) -> [V3 a] Source # index :: (V3 a, V3 a) -> V3 a -> Int Source # unsafeIndex :: (V3 a, V3 a) -> V3 a -> Int Source # inRange :: (V3 a, V3 a) -> V3 a -> Bool Source # rangeSize :: (V3 a, V3 a) -> Int Source # unsafeRangeSize :: (V3 a, V3 a) -> Int Source #
Num a => Num (V3 a) |
Instance details Defined in Linear.V3 Methods (+) :: V3 a -> V3 a -> V3 a Source # (-) :: V3 a -> V3 a -> V3 a Source # (*) :: V3 a -> V3 a -> V3 a Source # negate :: V3 a -> V3 a Source # abs :: V3 a -> V3 a Source # signum :: V3 a -> V3 a Source # fromInteger :: Integer -> V3 a Source #
Read a => Read (V3 a) |
Instance details Defined in Linear.V3 Methods readsPrec :: Int -> ReadS (V3 a) Source # readList :: ReadS [V3 a] Source # readPrec :: ReadPrec (V3 a) Source # readListPrec :: ReadPrec [V3 a] Source #
Fractional a => Fractional (V3 a) |
Instance details Defined in Linear.V3 Methods (/) :: V3 a -> V3 a -> V3 a Source # recip :: V3 a -> V3 a Source # fromRational :: Rational -> V3 a Source #
Show a => Show (V3 a) |
Instance details Defined in Linear.V3 Methods showsPrec :: Int -> V3 a -> ShowS Source # show :: V3 a -> String Source # showList :: [V3 a] -> ShowS Source #
Eq a => Eq (V3 a) |
Instance details Defined in Linear.V3 Methods (==) :: V3 a -> V3 a -> Bool Source # (/=) :: V3 a -> V3 a -> Bool Source #
Ord a => Ord (V3 a) |
Instance details Defined in Linear.V3 Methods compare :: V3 a -> V3 a -> Ordering Source # (<) :: V3 a -> V3 a -> Bool Source # (<=) :: V3 a -> V3 a -> Bool Source # (>) :: V3 a -> V3 a -> Bool Source # (>=) :: V3 a -> V3 a -> Bool Source # max :: V3 a -> V3 a -> V3 a Source # min :: V3 a -> V3 a -> V3 a Source #
Hashable a => Hashable (V3 a) |
Instance details Defined in Linear.V3 Methods hashWithSalt :: Int -> V3 a -> Int Source # hash :: V3 a -> Int Source #
Ixed (V3 a) |
Instance details Defined in Linear.V3 Methods ix :: Index (V3 a) -> Traversal' (V3 a) (IxValue (V3 a)) Source #
Epsilon a => Epsilon (V3 a) |
Instance details Defined in Linear.V3 Methods nearZero :: V3 a -> Bool Source #
Random a => Random (V3 a) |
Instance details Defined in Linear.V3 Methods randomR :: RandomGen g => (V3 a, V3 a) -> g -> (V3 a, g) random :: RandomGen g => g -> (V3 a, g) randomRs :: RandomGen g => (V3 a, V3 a) -> g -> [V3 a] randoms :: RandomGen g => g -> [V3 a]
Uniform a => Uniform (V3 a) |
Instance details Defined in Linear.V3 Methods uniformM :: StatefulGen g m => g -> m (V3 a)
UniformRange a => UniformRange (V3 a) |
Instance details Defined in Linear.V3 Methods uniformRM :: StatefulGen g m => (V3 a, V3 a) -> g -> m (V3 a)
Unbox a => Unbox (V3 a) |
Instance details Defined in Linear.V3
FoldableWithIndex (E V3) V3 |
Instance details Defined in Linear.V3 Methods ifoldMap :: Monoid m => (E V3 -> a -> m) -> V3 a -> m # ifoldMap' :: Monoid m => (E V3 -> a -> m) -> V3 a -> m # ifoldr :: (E V3 -> a -> b -> b) -> b -> V3 a -> b # ifoldl :: (E V3 -> b -> a -> b) -> b -> V3 a -> b # ifoldr' :: (E V3 -> a -> b -> b) -> b -> V3 a -> b # ifoldl' :: (E V3 -> b -> a -> b) -> b -> V3 a -> b #
FunctorWithIndex (E V3) V3 |
Instance details Defined in Linear.V3 Methods imap :: (E V3 -> a -> b) -> V3 a -> V3 b #
TraversableWithIndex (E V3) V3 |
Instance details Defined in Linear.V3 Methods itraverse :: Applicative f => (E V3 -> a -> f b) -> V3 a -> f (V3 b) #
Each (V3 a) (V3 b) a b |
Instance details Defined in Linear.V3 Methods each :: Traversal (V3 a) (V3 b) a b Source #
Field1 (V3 a) (V3 a) a a |
Instance details Defined in Linear.V3 Methods _1 :: Lens (V3 a) (V3 a) a a Source #
Field2 (V3 a) (V3 a) a a |
Instance details Defined in Linear.V3 Methods _2 :: Lens (V3 a) (V3 a) a a Source #
Field3 (V3 a) (V3 a) a a |
Instance details Defined in Linear.V3 Methods _3 :: Lens (V3 a) (V3 a) a a Source #
TypeableFloat n => Traced (BoundingBox V3 n) Source # |
Instance details Defined in Diagrams.BoundingBox Methods getTrace :: BoundingBox V3 n -> Trace (V (BoundingBox V3 n)) (N (BoundingBox V3 n)) Source #
type Rep V3 |
Instance details Defined in Linear.V3 type Rep V3 = E V3
type Diff V3 |
Instance details Defined in Linear.Affine type Diff V3 = V3
type Size V3 |
Instance details Defined in Linear.V3 type Size V3 = 3
type Rep1 V3 |

Instance details

Defined in Linear.V3

type Rep1 V3 = D1 ('MetaData "V3" "Linear.V3" "linear-1.23.2-5AqyVb8sK1m3MfzHCRCQd3" 'False) (C1 ('MetaCons "V3" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1 :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1 :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1)))

data MVector s (V3 a) |
Instance details Defined in Linear.V3 data MVector s (V3 a) = MV_V3 !Int !(MVector s a)
type N (V3 n) Source # |
Instance details Defined in Diagrams.ThreeD.Types type N (V3 n) = n
type V (V3 n) Source # |
Instance details Defined in Diagrams.ThreeD.Types type V (V3 n) = V3
type Decomposition (V3 n) Source # |
Instance details Defined in Diagrams.Coordinates type Decomposition (V3 n) = (n :& n) :& n
type FinalCoord (V3 n) Source # |
Instance details Defined in Diagrams.Coordinates type FinalCoord (V3 n) = n
type PrevDim (V3 n) Source # |
Instance details Defined in Diagrams.Coordinates type PrevDim (V3 n) = V2 n
type Rep (V3 a) |

Instance details

Defined in Linear.V3

type Rep (V3 a) = D1 ('MetaData "V3" "Linear.V3" "linear-1.23.2-5AqyVb8sK1m3MfzHCRCQd3" 'False) (C1 ('MetaCons "V3" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a))))

type Index (V3 a) |
Instance details Defined in Linear.V3 type Index (V3 a) = E V3
type IxValue (V3 a) |
Instance details Defined in Linear.V3 type IxValue (V3 a) = a
data Vector (V3 a) |
Instance details Defined in Linear.V3 data Vector (V3 a) = V_V3 !Int !(Vector a)

type P3 = Point V3 Source #

type T3 = Transformation V3 Source #

class R1 (t :: Type -> Type) where Source #

A space that has at least 1 basis vector `_x`.

Methods

_x :: Lens' (t a) a Source #

    >>> V1 2 ^._x
    2

    >>> V1 2 & _x .~ 3
    V1 3

#### Instances

Instances details

R1 Identity |
Instance details Defined in Linear.V1 Methods _x :: Lens' (Identity a) a Source #
R1 Quaternion |
Instance details Defined in Linear.Quaternion Methods _x :: Lens' (Quaternion a) a Source #
R1 V1 |
Instance details Defined in Linear.V1 Methods _x :: Lens' (V1 a) a Source #
R1 V2 |
Instance details Defined in Linear.V2 Methods _x :: Lens' (V2 a) a Source #
R1 V3 |
Instance details Defined in Linear.V3 Methods _x :: Lens' (V3 a) a Source #
R1 V4 |
Instance details Defined in Linear.V4 Methods _x :: Lens' (V4 a) a Source #
R1 f => R1 (Point f) |
Instance details Defined in Linear.Affine Methods _x :: Lens' (Point f a) a Source #

class R1 t => R2 (t :: Type -> Type) where Source #

A space that distinguishes 2 orthogonal basis vectors `_x` and `_y`, but may have more.

Minimal complete definition

_xy

Methods

_y :: Lens' (t a) a Source #

    >>> V2 1 2 ^._y
    2

    >>> V2 1 2 & _y .~ 3
    V2 1 3

_xy :: Lens' (t a) (V2 a) Source #

#### Instances

Instances details

R2 Quaternion |
Instance details Defined in Linear.Quaternion Methods _y :: Lens' (Quaternion a) a Source # _xy :: Lens' (Quaternion a) (V2 a) Source #
R2 V2 |
Instance details Defined in Linear.V2 Methods _y :: Lens' (V2 a) a Source # _xy :: Lens' (V2 a) (V2 a) Source #
R2 V3 |
Instance details Defined in Linear.V3 Methods _y :: Lens' (V3 a) a Source # _xy :: Lens' (V3 a) (V2 a) Source #
R2 V4 |
Instance details Defined in Linear.V4 Methods _y :: Lens' (V4 a) a Source # _xy :: Lens' (V4 a) (V2 a) Source #
R2 f => R2 (Point f) |
Instance details Defined in Linear.Affine Methods _y :: Lens' (Point f a) a Source # _xy :: Lens' (Point f a) (V2 a) Source #

class R2 t => R3 (t :: Type -> Type) where Source #

A space that distinguishes 3 orthogonal basis vectors: `_x`, `_y`, and `_z`. (It may have more)

Methods

_z :: Lens' (t a) a Source #

    >>> V3 1 2 3 ^. _z
    3

_xyz :: Lens' (t a) (V3 a) Source #

#### Instances

Instances details

R3 Quaternion |
Instance details Defined in Linear.Quaternion Methods _z :: Lens' (Quaternion a) a Source # _xyz :: Lens' (Quaternion a) (V3 a) Source #
R3 V3 |
Instance details Defined in Linear.V3 Methods _z :: Lens' (V3 a) a Source # _xyz :: Lens' (V3 a) (V3 a) Source #
R3 V4 |
Instance details Defined in Linear.V4 Methods _z :: Lens' (V4 a) a Source # _xyz :: Lens' (V4 a) (V3 a) Source #
R3 f => R3 (Point f) |
Instance details Defined in Linear.Affine Methods _z :: Lens' (Point f a) a Source # _xyz :: Lens' (Point f a) (V3 a) Source #

# Orphan instances

HasPhi V3 Source # |
Instance details Methods _phi :: RealFloat n => Lens' (V3 n) (Angle n) Source #
HasTheta V3 Source # |
Instance details Methods _theta :: RealFloat n => Lens' (V3 n) (Angle n) Source #
HasR V3 Source # |
Instance details Methods _r :: RealFloat n => Lens' (V3 n) n Source #
Transformable (V3 n) Source # |
Instance details Methods transform :: Transformation (V (V3 n)) (N (V3 n)) -> V3 n -> V3 n Source #