Portability | GHC |
---|---|

Stability | unstable |

Maintainer | stephen.tetley@gmail.com |

Reader monad over (angular) direction.

# Documentation

class Monad m => DirectionM m whereSource

localTheta :: Radian -> m a -> m aSource

asksTheta :: (Radian -> a) -> m aSource

parallel :: Floating u => u -> m (Vec2 u)Source

perpendicular :: Floating u => u -> m (Vec2 u)Source

DirectionM Direction | |

Monad m => DirectionM (DirectionT m) |

runDirection :: Radian -> Direction a -> aSource

data DirectionT m a Source

Monad m => Monad (DirectionT m) | |

Monad m => Functor (DirectionT m) | |

Monad m => Applicative (DirectionT m) | |

DrawingCtxM m => DrawingCtxM (DirectionT m) | |

(Monad m, TraceM m) => TraceM (DirectionT m) | |

Monad m => DirectionM (DirectionT m) |

runDirectionT :: Radian -> DirectionT m a -> m aSource

displacePerp :: (DirectionM m, Floating u) => u -> Point2 u -> m (Point2 u)Source

displacePara :: (DirectionM m, Floating u) => u -> Point2 u -> m (Point2 u)Source