Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector4

lerp(v, [t])

Description:

Linearly interpolate between this Vector and the given Vector.

Interpolates this Vector towards the given Vector.

Parameters:

name type arguments description
v Phaser.Math.Vector4

The Vector4 to interpolate towards.

t number <optional>

The interpolation percentage, between 0 and 1.

Returns:
Description:

This Vector4.

Since: 3.0.0
Source: src/math/Vector4.js (Line 315)