interface Point { x: number; y: number; } interface RectConfig { x: number; y: number; width: number; height: number; } /** * @param point {{x,y}} 需要判断的点 * @param coordinates {{x,y}[]} 多边形点坐标的数组,为保证图形能够闭合,起点和终点必须相等。 * 比如三角形需要四个点表示,第一个点和最后一个点必须相同。 * @param noneZeroMode 对不规则图形进行判断,默认启动none zero mode */ declare const isInPolyRect: (point: Point, coordinates: any, noneZeroMode?: boolean) => boolean; /** * 面向数学坐标系编程 */ declare const isInRect: (point: Point, config: RectConfig) => boolean; /** * 调用时:面向直角坐标系编程(正方向为顺时针) * 方法内:面向web坐标系编程(正方向为逆时针) */ declare const isInSector: (point: Point, sectorArea: any) => boolean; export { isInRect, isInPolyRect, isInSector };