Interpolation of vectors. Note: we interpolate unit vectors differently from ordinary vectors.
- class Interpolate v where
- interpolate :: Double -> v -> v -> v
- slerp :: (Interpolate v, UnitVector v u) => Double -> u -> u -> u
Documentation
class Interpolate v whereSource
interpolate :: Double -> v -> v -> vSource
slerp :: (Interpolate v, UnitVector v u) => Double -> u -> u -> uSource
Spherical linear interpolation. See http://en.wikipedia.org/wiki/Slerp