diagrams-core-0.4: Core libraries for diagrams EDSL

Maintainerdiagrams-discuss@googlegroups.com

Graphics.Rendering.Diagrams.Util

Contents

Description

Various internal utilities for the diagrams project.

Synopsis

Monoids

(<>) :: Monoid m => m -> m -> mSource

A useful infix operator synonym for mappend. Hopefully it will eventually be added to the standard libraries and can be deleted from here.

Vectors

withLength :: (InnerSpace v, Floating (Scalar v)) => Scalar v -> v -> vSource

Produce a vector with the specified length in the same direction as the given vector.