* @function LevelRenderer.Tool.Areal.prototype.isInsideRect * @description 图形 Rect 是否包含鼠标位置, true表示坐标处在图形内。 * @returns {boolean} 图形是否包含鼠标位置, true表示坐标处在图形内。
(x0, y0, width, height, x, y)
| 611 | * @returns {boolean} 图形是否包含鼠标位置, true表示坐标处在图形内。 |
| 612 | */ |
| 613 | isInsideRect(x0, y0, width, height, x, y) { |
| 614 | return x >= x0 && x <= (x0 + width) && y >= y0 && y <= (y0 + height); |
| 615 | } |
| 616 | |
| 617 | /** |
| 618 | * @function LevelRenderer.Tool.Areal.prototype.isInsideCircle |