vect-floating-0.1.0.4: A low-dimensional linear algebra library, operating on the Floating typeclass

Safe HaskellNone
LanguageHaskell98

Data.Vect.Floating.Interpolate

Description

Interpolation of vectors. Note: we interpolate unit vectors differently from ordinary vectors.

Synopsis

Documentation

class Interpolate a v where Source

Methods

interpolate :: a -> v -> v -> v Source

slerp :: UnitVector a v u => a -> u a -> u a -> u a Source

Spherical linear interpolation. See http://en.wikipedia.org/wiki/Slerp