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

Safe HaskellNone

Data.Vect.Floating.Interpolate

Description

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

Synopsis

Documentation

class Interpolate a v whereSource

Methods

interpolate :: a -> v -> v -> vSource

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

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