Tools for adjusting the length of parametric objects such as segments and trails.
- adjust :: (DomainBounds a, Sectionable a, HasArcLength a, Fractional (Scalar (V a))) => a -> AdjustOpts (V a) -> a
- data AdjustOpts v
- adjMethod :: Lens' (AdjustOpts v) (AdjustMethod v)
- adjSide :: Lens' (AdjustOpts v) AdjustSide
- adjEps :: Lens' (AdjustOpts v) (Scalar v)
- data AdjustMethod v
- data AdjustSide
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
How should a segment, trail, or path be adjusted?
What method should be used for adjusting a segment, trail, or path?
|ByParam (Scalar v)|
Extend by the given parameter value (use a negative parameter to shrink)
|ByAbsolute (Scalar v)|
Extend by the given arc length (use a negative length to shrink)
|ToAbsolute (Scalar v)|
Extend or shrink to the given arc length