import Coordinate, { type CoordinateJson } from '../Coordinate'; import type { WithNull } from '../../types/typings'; type CoordsLike = Coordinate | CoordinateJson; /** * 具有 Sphere 通用测量方法的辅助类。 * * @english * A helper class with common measure methods for Sphere. * @group measurer * @private */ declare class Sphere { radius: number; /** * @param radius Sphere's radius */ constructor(radius: number); /** * 计算两个坐标之间的距离 * * @english * Measure the length between 2 coordinates. * @param c1 * @param c2 */ measureLenBetween(c1: CoordsLike, c2: CoordsLike, ignoreAltitude?: boolean): number; /** * 测量给定闭合坐标的面积 * * @english * Measure the area closed by the given coordinates. * @param coordinates */ measureArea(coordinates: CoordsLike[]): number; /** * 使用 x 轴距离和 y 轴距离从给定源坐标定位坐标 * @english * Locate a coordinate from the given source coordinate with a x-axis distance and a y-axis distance. * @param c * @param xDist * @param yDist * @param out */ locate(c: CoordsLike, xDist: number, yDist: number, out?: Coordinate): Coordinate; /** * 使用 x 轴距离和 y 轴距离从给定源坐标定位坐标 * @english * Locate a coordinate from the given source coordinate with a x-axis distance and a y-axis distance. * @param c - source coordinate * @param xDist - x-axis distance * @param yDist - y-axis distance * @private */ _locate(c: Coordinate, xDist: number, yDist: number): WithNull; /** * 绕枢轴旋转给定角度的坐标 * @english * Rotate a coordinate of given angle around pivot * @param c - source coordinate * @param pivot - pivot * @param angle - angle in degree */ rotate(c: CoordsLike, pivot: Coordinate, angle: number): Coordinate; /** * 绕枢轴旋转给定角度的坐标 * @english * Rotate a coordinate of given angle around pivot * @param c - source coordinate * @param pivot - pivot * @param angle - angle in degree * @private */ _rotate(c: Coordinate, pivot: Coordinate, angle: number): Coordinate; } /** * WGS84 椭球球体 * @english * WGS84 Sphere measurer. * @category geo * @protected * @group measurer * @module WGS84Sphere * {@inheritDoc measurer.Common} */ export declare const WGS84Sphere: { measure: string; sphere: Sphere; /** * 计算两个坐标之间的距离 * * @english * Measure the length between 2 coordinates. * @param c1 * @param c2 */ measureLenBetween(c1: CoordsLike, c2: CoordsLike): number; /** * 计算给定闭合坐标的面积 * * @english * Measure the area closed by the given coordinates. * @param coordinates */ measureArea(coordinates: Coordinate[]): number; _locate(c: CoordsLike, xDist: number, yDist: number): any; /** * 使用 x 轴距离和 y 轴距离从给定源坐标定位坐标。 * @english * Locate a coordinate from the given source coordinate with a x-axis distance and a y-axis distance. * @param c - source coordinate * @param xDist - x-axis distance * @param yDist - y-axis distance * @param out - out */ locate(c: CoordsLike, xDist: number, yDist: number, out?: Coordinate): any; _rotate(c: Coordinate, pivot: Coordinate, angle: number): any; /** * 绕枢轴旋转给定角度的坐标 * @english * Rotate a coordinate of given angle around pivot * @param c - source coordinate * @param pivot - pivot * @param angle - angle in degree */ rotate(c: CoordsLike, pivot: Coordinate, angle: number): any; } & { measureLength: (c1: Coordinate, c2: Coordinate) => number; }; /** * 百度地图所使用的椭球体 * * @english * Baidu sphere measurer * @category geo * @protected * @group measurer * @module BaiduSphere * {@inheritDoc measurer.Common} */ export declare const BaiduSphere: { measure: string; sphere: Sphere; /** * 计算两个坐标之间的距离 * * @english * Measure the length between 2 coordinates. * @param c1 * @param c2 */ measureLenBetween(c1: CoordsLike, c2: CoordsLike): number; /** * 计算给定闭合坐标的面积 * * @english * Measure the area closed by the given coordinates. * @param coordinates */ measureArea(coordinates: CoordsLike[]): number; _locate(c: Coordinate, xDist: number, yDist: number): any; /** * 使用 x 轴距离和 y 轴距离从给定源坐标定位坐标。 * @english * Locate a coordinate from the given source coordinate with a x-axis distance and a y-axis distance. * @param c - source coordinate * @param xDist - x-axis distance * @param yDist - y-axis distance * @param out - out */ locate(c: CoordsLike, xDist: number, yDist: number, out?: Coordinate): any; _rotate(c: Coordinate, pivot: Coordinate, angle: number): any; /** * 绕枢轴旋转给定角度的坐标 * @english * Rotate a coordinate of given angle around pivot * @param c - source coordinate * @param pivot - pivot * @param angle - angle in degree */ rotate(c: CoordsLike, pivot: Coordinate, angle: number): any; } & { measureLength: (c1: Coordinate, c2: Coordinate) => number; }; export type BaiduSphereType = typeof BaiduSphere; export type WGS84SphereType = typeof WGS84Sphere; export {}; //# sourceMappingURL=Sphere.d.ts.map