Phaser API Documentation

  Version: 

Member of: Phaser.Math

<static> Bernstein(n, i)

Description:

Calculates the Bernstein basis from the three factorial coefficients.

Parameters:

name type description
n number

The first value.

i number

The second value.

Returns:
Description:

The Bernstein basis of Factorial(n) / Factorial(i) / Factorial(n - i)

Type:
  • number
Examples:
Since: 3.0.0
Source: src/math/Bernstein.js (Line 9)