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

Copyright(c) 2013 diagrams-lib team (see LICENSE)
LicenseBSD-style (see LICENSE)
Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone
LanguageHaskell2010

Diagrams.Parametric.Adjust

Description

Tools for adjusting the length of parametric objects such as segments and trails.

Synopsis

Documentation

adjust :: (N t ~ n, Sectionable t, HasArcLength t, Fractional n) => t -> AdjustOpts n -> t #

Adjust the length of a parametric object such as a segment or trail. The second parameter is an option record which controls how the adjustment should be performed; see AdjustOpts.

data AdjustOpts n #

How should a segment, trail, or path be adjusted?

Instances

Fractional n => Default (AdjustOpts n) # 

Methods

def :: AdjustOpts n #

adjMethod :: Lens' (AdjustOpts n) (AdjustMethod n) #

Which method should be used for adjusting?

adjSide :: Lens' (AdjustOpts n) AdjustSide #

Which end(s) of the object should be adjusted?

adjEps :: Lens' (AdjustOpts n) n #

Tolerance to use when doing adjustment.

data AdjustMethod n #

What method should be used for adjusting a segment, trail, or path?

Constructors

ByParam n

Extend by the given parameter value (use a negative parameter to shrink)

ByAbsolute n

Extend by the given arc length (use a negative length to shrink)

ToAbsolute n

Extend or shrink to the given arc length

Instances