import { XY } from './xy'; /** * 坐标范围 * @remark Represents a rectangular area in plane or pixel coordinates. */ export declare abstract class XYBounds { /** * 最小坐标 * @remark The top left corner of the rectangle. */ min: XY; /** * 最大坐标 * @remark The bottom right corner of the rectangle. */ max: XY; /** * 构造函数 * @param {XY | XY[]} a - 坐标或坐标数组 * @param {XY} b - 坐标 */ constructor(a?: XY | XY[], b?: XY); /** * 扩展坐标范围 * @param {XY | XYBounds} obj - 坐标或坐标范围 * @return {LatLngBounds} 返回坐标范围 */ extend(obj: XY | XYBounds): XYBounds; /** * 获取中心点 * @return {XY} 返回中心点XY */ abstract getCenter(round?: boolean): XY; /** * 获取左下角 * @return {XY} 返回左下角XY */ abstract getBottomLeft(): XY; /** * 获取右上角 * @return {XY} 返回右上角XY */ abstract getTopRight(): XY; /** * 获取左上角 * @return {XY} 返回左上角XY */ getTopLeft(): XY; /** * 获取右下角 * @return {XY} 返回右下角XY */ getBottomRight(): XY; /** * 获取范围大小XY * @return {XY} 返回范围大小XY */ getSize(): XY; /** * 判断是否包含坐标或坐标范围 * @param {XYBounds | XY} obj - 坐标或坐标范围 * @return {boolean} 返回是否包含 */ contains(obj: XYBounds | XY): boolean; /** * 判断是否与另一经纬度范围有交叉 * @param {LatLngBounds} obj - 经纬度范围 * @return {boolean} 返回是否交叉 */ intersects(bounds: XYBounds): boolean; /** * 判断是否与另一坐标范围有叠盖 * @param {XYBounds} obj - 经纬度范围 * @return {boolean} 返回是否叠盖 */ overlaps(bounds: XYBounds): boolean; /** * 判断坐标范围是否有效 * @return {boolean} 返回是否有效 */ isValid(): boolean; }