arcade-physics
Version:
Use Arcade Physics without Phaser.
19 lines • 625 B
TypeScript
export default Median;
/**
* @author Vladislav Forsh <vlad@robowhale.com>
* @copyright 2021 RoboWhale
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Calculate the median of the given values. The values are sorted and the middle value is returned.
* In case of an even number of values, the average of the two middle values is returned.
*
* @function Phaser.Math.Median
* @since 3.54.0
*
* @param {number[]} values - The values to average.
*
* @return {number} The median value.
*/
declare function Median(values: number[]): number;
//# sourceMappingURL=Median.d.ts.map