import Point from '../../geo/Point'; import Coordinate from '../../geo/Coordinate'; import { PointExtent } from '../../geo'; export declare function clipLine(points: any, bounds: any, round?: boolean, noCut?: boolean): any[]; export declare function clipSegment(a: any, b: any, min: Point, max: Point, useLastCode: any, round: any, noCut: any): false | any[]; export declare function clipPolygon(points: any, bounds: PointExtent, round?: boolean): any; /** * caculate the distance from a point to a segment. * @param p * @param p1 * @param p2 * @return distance from p to (p1, p2) * @memberOf Util */ export declare function distanceToSegment(p: Point, p1: Point, p2: Point): number; /** * Whether the coordinate is inside the polygon * @param p * @param points * @return * @memberOf Util */ export declare function pointInsidePolygon(p: Coordinate, points: Coordinate[]): boolean; /** * Is the point within an ellipse * @param point * @param center ellipse's center * @param southeast ellipse's southeast point * @param tolerance * @returns * @private * @memberOf Util */ export declare function withInEllipse(point: Point, center: Point, southeast: Point, tolerance: number): boolean; export declare function getMinMaxAltitude(altitude: number | number[] | number[][] | number[][][]): [number, number]; /** * point left segment * @param p * @param p1 * @param p2 * @returns */ export declare function pointLeftSegment(p: Point, p1: Point, p2: Point): boolean; /** * * LT--------------------RT * \ / * \ / * \ / * LB-----------RB * camera behind * * Points within a convex quadrilateral * @param point * @param p1 * @param p2 * @param p3 * @param p4 * @returns */ export declare function pointInQuadrilateral(p: Point, LT: Point, RT: Point, RB: Point, LB: Point): boolean; /** * 直线和直线的交点 * Intersection of two line * @param p1 * @param p2 * @param p3 * @param p4 * @returns */ export declare function lineIntersection(p1: Point, p2: Point, p3: Point, p4: Point): Point | null; /** * Does it contain altitude values * @param altitudes * @returns */ export declare function altitudesHasData(altitudes: number | Array): boolean; //# sourceMappingURL=path.d.ts.map