* @function Bounds.prototype.containsPixel * @description 判断传入的像素是否在范围内。直接匹配大小,不涉及像素和地理转换。 * @example * var bounds = new Bounds(-50,-50,40,40); * //isContains = true * var isContains = bounds.containsPixel(new Pixel(40,40),true); * @param {Pixel} px - 提供的像素参数。 * @p
(px, inclusive)
| 411 | * @returns {boolean} 传入的 pixel 在当前边界范围之内。 |
| 412 | */ |
| 413 | containsPixel(px, inclusive) { |
| 414 | return this.contains(px.x, px.y, inclusive); |
| 415 | } |
| 416 | |
| 417 | /** |
| 418 | * @function Bounds.prototype.contains |