mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 09:03:29 +00:00
10 lines
346 B
TypeScript
10 lines
346 B
TypeScript
/**
|
|
* Force a value within the boundaries by clamping it to the range `min`, `max`.
|
|
*
|
|
* @method Phaser.Math#clamp
|
|
* @param {float} v - The value to be clamped.
|
|
* @param {float} min - The minimum bounds.
|
|
* @param {float} max - The maximum bounds.
|
|
* @return {number} The clamped value.
|
|
*/
|
|
export default function (v: any, min: any, max: any): any;
|