Corrected documentation and tidied up #4992

This commit is contained in:
Richard Davey 2020-10-02 11:25:48 +01:00
parent ffb49bdb3a
commit a3f67973cd

View file

@ -5,18 +5,17 @@
*/
/**
* Sets the tiles in the given rectangular area (in tile coordinates) of the layer with the
* specified index. Tiles will be set to collide if the given index is a colliding index.
* Collision information in the region will be recalculated.
* Checks if the given tile coordinate is within the isometric layer bounds, or not.
*
* @function Phaser.Tilemaps.Components.CheckIsoBounds
* @private
* @since 3.50.iso
* @since 3.50.0
*
* @param {integer} tileX - The x coordinate, in tiles, not pixels.
* @param {integer} tileY - The y coordinate, in tiles, not pixels.
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to check against.
* @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to run the cull check against.
*
* @return {boolean} Returns `true` if the coordinates are within the iso bounds.
*/
var CheckIsoBounds = function (tileX, tileY, layer, camera)
{