/// /** Utility functions for computing angles, distances, and areas on the sphere. */ export declare class MigrationSpherical { /** * Returns the area of a closed path. * * @param path - A closed path. * @param radiusOfSphere - Optional. The radius of the sphere in meters. Defaults to Earth's radius. * @returns The area in square meters. */ static computeArea(path: google.maps.LatLng[] | google.maps.MVCArray, radiusOfSphere?: number): number; /** * Returns the distance, in meters, between two LatLngs. * * @param from - The first LatLng. * @param to - The second LatLng. * @param radius - Optional. The radius of the sphere in meters. Defaults to Earth's radius. * @returns The distance in meters. */ static computeDistanceBetween(from: google.maps.LatLng | google.maps.LatLngLiteral, to: google.maps.LatLng | google.maps.LatLngLiteral, radius?: number): number; /** * Returns the heading from one LatLng to another LatLng. * * @param from - The first LatLng. * @param to - The second LatLng. * @returns The heading in degrees from North in the range [-180, 180). */ static computeHeading(from: google.maps.LatLng | google.maps.LatLngLiteral, to: google.maps.LatLng | google.maps.LatLngLiteral): number; /** * Returns the length of the given path. * * @param path - A sequence of LatLngs. * @param radius - Optional. The radius of the sphere in meters. Defaults to Earth's radius. * @returns The length in meters. */ static computeLength(path: google.maps.LatLng[] | google.maps.MVCArray, radius?: number): number; /** * Returns the LatLng resulting from moving a distance from an origin in the specified heading. * * @param from - The starting LatLng. * @param distance - The distance to travel in meters. * @param heading - The heading in degrees clockwise from North. * @param radius - Optional. The radius of the sphere in meters. Defaults to Earth's radius. * @returns The destination LatLng. */ static computeOffset(from: google.maps.LatLng | google.maps.LatLngLiteral, distance: number, heading: number, radius?: number): google.maps.LatLng; /** * Returns the location of origin when provided with a LatLng destination, meters traveled, and heading. * * @param to - The destination LatLng. * @param distance - The distance traveled in meters. * @param heading - The heading in degrees clockwise from North. * @param radius - Optional. The radius of the sphere in meters. Defaults to Earth's radius. * @returns The origin LatLng. */ static computeOffsetOrigin(to: google.maps.LatLng | google.maps.LatLngLiteral, distance: number, heading: number, radius?: number): google.maps.LatLng; /** * Returns the signed area of a closed path. The sign of the area is positive if the ordering is counter-clockwise. * * @param loop - A closed loop path. * @param radius - Optional. The radius of the sphere in meters. Defaults to Earth's radius. * @returns The signed area in square meters. */ static computeSignedArea(loop: google.maps.LatLng[] | google.maps.MVCArray, radius?: number): number; /** * Returns the LatLng which lies the given fraction of the way between the origin and the destination. * * @param from - The starting LatLng. * @param to - The ending LatLng. * @param fraction - A fraction between 0 and 1. * @returns The interpolated LatLng. */ static interpolate(from: google.maps.LatLng | google.maps.LatLngLiteral, to: google.maps.LatLng | google.maps.LatLngLiteral, fraction: number): google.maps.LatLng; }