Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector3

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.Vector3

The Vector3 to interpolate towards.

t number <optional>

The interpolation percentage, between 0 and 1.

Returns:
Description:

This Vector3.

Since: 3.0.0
Source: src/math/Vector3.js (Line 623)