vec3.interpolate

From GTA Connected
Revision as of 15:35, 24 August 2019 by Mex (talk | contribs) (Mex moved page Vec3.interpolate to vec3.interpolate)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

interpolate

Signature: void interpolate(Vec3 vector, float ratio)

Usage: fetch a new 3D vector of the vector interpolated with a second 3D 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: Vec3 Vec3(0.0,0.0,0.0)