# Phaser API Documentation

Version:
Namespace: Interpolation
Phaser.Math.Interpolation

### Methods

<static> Bezier(v, k)

#### Description:

A bezier interpolation method.

#### Parameters:

name type description
v Array.<number>

The input array of values to interpolate between.

k number

The percentage of interpolation, between 0 and 1.

##### Description:

The interpolated value.

##### Type:
• number
Since: 3.0.0
<static> CatmullRom(v, k)

#### Description:

A Catmull-Rom interpolation method.

#### Parameters:

name type description
v Array.<number>

The input array of values to interpolate between.

k number

The percentage of interpolation, between 0 and 1.

##### Description:

The interpolated value.

##### Type:
• number
<static> CubicBezier(t, p0, p1, p2, p3)

#### Description:

A cubic bezier interpolation method.

#### Parameters:

name type description
t number

The percentage of interpolation, between 0 and 1.

p0 number

The start point.

p1 number

The first control point.

p2 number

The second control point.

p3 number

The end point.

##### Description:

The interpolated value.

##### Type:
• number
<static> Linear(v, k)

#### Description:

A linear interpolation method.

#### Parameters:

name type description
v Array.<number>

The input array of values to interpolate between.

k number

The percentage of interpolation, between 0 and 1.

##### Description:

The interpolated value.

• number
Since: 3.0.0

#### Parameters:

name type description
t number

The percentage of interpolation, between 0 and 1.

p0 number

The start point.

p1 number

The control point.

p2 number

The end point.

##### Description:

The interpolated value.

##### Type:
• number
Since: 3.2.0
<static> SmootherStep(t, min, max)

#### Description:

A Smoother Step interpolation method.

#### Parameters:

name type description
t number

The percentage of interpolation, between 0 and 1.

min number

The minimum value, also known as the 'left edge', assumed smaller than the 'right edge'.

max number

The maximum value, also known as the 'right edge', assumed greater than the 'left edge'.

##### Description:

The interpolated value.

##### Type:
• number
<static> SmoothStep(t, min, max)

#### Description:

A Smooth Step interpolation method.

#### Parameters:

name type description
t number

The percentage of interpolation, between 0 and 1.

min number

The minimum value, also known as the 'left edge', assumed smaller than the 'right edge'.

max number

The maximum value, also known as the 'right edge', assumed greater than the 'left edge'.

##### Description:

The interpolated value.

• number