Safe Haskell | None |
---|---|
Language | Haskell2010 |
- offsetPoints :: AffineSpace p => p -> [Diff p] -> [p]
- pointOffsets :: AffineSpace p => p -> [p] -> [Diff p]
- offsetVs :: AffineSpace p => p -> [Diff p] -> [p]
- distanceVs :: AffineSpace p => p -> [p] -> [Diff p]
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