vec2.interpolate

Revision as of 15:34, 24 August 2019 by Mex (talk | contribs) (Mex moved page Vec2.interpolate to vec2.interpolate)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

interpolate

Signature: void interpolate(Vec2 vector, float ratio)

Usage: fetch a new 2D vector of the vector 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, between -1.0 and 1.0.

Return

void

On failure: Vec2 Vec2(0.0,0.0)