v = physics.Vect:slerpconst(vec, angle)
Parameter |
Type |
Description |
---|---|---|
self |
in physics.Vect |
A unit vector |
vec |
in physics.Vect |
The other unit vector |
angle |
in number |
The maximum angle between self and vec to interpolate a new vector |
v |
out physics.Vect |
|
Returns the spherical linear interpolation from self towards vec, but by no more than angle in radians. See http://en.wikipedia.org/wiki/Slerp for a discussion of the meaning, value, and usage of spherical linear interpolation.
Note
This routine computes meaningful results only when the two inputs are unit vectors.
Introduced in platform.apiLevel = '2.0'