music-score-1.9.0: Musical score and part representation.

Safe HaskellNone
LanguageHaskell2010

Data.AffineSpace.Point.Offsets

Synopsis

Documentation

offsetPoints :: AffineSpace p => p -> [Diff p] -> [p] Source

Lay out a series of vectors from a given point. Return all intermediate points.

lenght xs + 1 == length (offsetPoints p xs)
>>> offsetPoints 0 [1,1,1] :: [Time]
[0,1,2,3]

pointOffsets :: AffineSpace p => p -> [p] -> [Diff p] Source

Calculate the relative difference between vectors.

lenght xs + 1 == length (offsetPoints p xs)
>>> offsetPoints 0 [1,1,1] :: [Time]
[0,1,2,3]

offsetVs :: AffineSpace p => p -> [Diff p] -> [p] Source

For all p > offsetVs p . distanceVs p = id > distanceVs p . offsetVs p = id

distanceVs :: AffineSpace p => p -> [p] -> [Diff p] Source