vec3.interpolate
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)