import type { LatLngLiteral } from '../../map/lat-lng'; /** * Returns the heading from one LatLng to another LatLng. Headings are * expressed in degrees clockwise from North within the range [-180,180). * * @return The heading in degrees clockwise from north. */ export declare function computeHeading(from: LatLngLiteral, to: LatLngLiteral): number; /** * Returns the LatLng resulting from moving a distance from an origin * in the specified heading (expressed in degrees clockwise from north). * * @param from The LatLng from which to start. * @param distance The distance to travel. * @param heading The heading in degrees clockwise from north. */ export declare function computeOffset(from: LatLngLiteral, distance: number, heading: number): LatLngLiteral; /** * Returns the location of origin when provided with a LatLng destination, * meters travelled and original heading. Headings are expressed in degrees * clockwise from North. This function returns null when no solution is * available. * * @param to The destination LatLng. * @param distance The distance travelled, in meters. * @param heading The heading in degrees clockwise from north. */ export declare function computeOffsetOrigin(to: LatLngLiteral, distance: number, heading: number): LatLngLiteral | null; /** * Returns the LatLng which lies the given fraction of the way between the * origin LatLng and the destination LatLng. * * @param from The LatLng from which to start. * @param to The LatLng toward which to travel. * @param fraction A fraction of the distance to travel. * @return The interpolated LatLng. */ export declare function interpolate(from: LatLngLiteral, to: LatLngLiteral, fraction: number): LatLngLiteral; /** * Returns the angle between two LatLngs, in radians. This is the same as the distance * on the unit sphere. */ export declare function computeAngleBetween(from: LatLngLiteral, to: LatLngLiteral): number; /** * Returns the distance between two LatLngs, in meters. */ export declare function computeDistanceBetween(from: LatLngLiteral, to: LatLngLiteral): number; /** * Returns the length of the given path, in meters, on Earth. */ export declare function computeLength(path: LatLngLiteral[]): number; /** * Returns the area of a closed path on Earth. * * @param path A closed path. * @return The path's area in square meters. */ export declare function computeArea(path: LatLngLiteral[]): number; /** * Returns the signed area of a closed path on Earth. The sign of the area may be used to * determine the orientation of the path. * "inside" is the surface that does not contain the South Pole. * * @param path A closed path. * @return The loop's area in square meters. */ export declare function computeSignedArea(path: LatLngLiteral[], radius?: number): number; //# sourceMappingURL=spherical-util.d.ts.map