Phaser API Documentation

  Version: 

Member of: Phaser.Math

<static> Average(values)

Description:

Calculate the mean average of the given values.

Parameters:

name type description
values Array.<number>

The values to average.

Returns:
Description:

The average value.

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