vec2.sphericalInterpolate
sphericalInterpolate
Signature: void sphericalInterpolate(Vec2 vector, float ratio)
Usage: fetch a new 2D vector of the vector spherically interpolated with a second 2D vector. Ratio is limited to between -1.0 and 1.0
Parameters
- Vec2 vector The second 2D vector.
- float ratio The interpolation ratio.
Return
void
On failure: Vec2 Vec2(0.0,0.0)