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