clampX(min, max) → {Phaser.Point}
Clamps the x value of this Point to be between the given min and max.
Parameters
Name | Type | Description |
---|---|---|
min | number | The minimum value to clamp this Point to. |
max | number | The maximum value to clamp this Point to. |
Returns
This Point object.
- Source code: geom/Point.js (Line 170)
Please login to continue.