UNPKG

s2-tools

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

35 lines 1.49 kB
import { ProjectionBase } from '.'; import type { VectorPoint } from '../../geometry'; import type { ProjectionParams, ProjectionTransform } from '.'; /** Geocentric Projection */ export declare class Geocentric extends ProjectionBase implements ProjectionTransform { name: string; static names: string[]; /** * Preps an Geocentric projection * @param params - projection specific parameters */ constructor(params?: ProjectionParams); /** * Geocentric forward equations--mapping lon-lat to x-y * * The function Convert_Geodetic_To_Geocentric converts geodetic coordinates * (latitude, longitude, and height) to geocentric coordinates (X, Y, Z), * according to the current ellipsoid parameters. * * Latitude : Geodetic latitude in radians (input) * Longitude : Geodetic longitude in radians (input) * Height : Geodetic height, in meters (input) * X : Calculated Geocentric X coordinate, in meters (output) * Y : Calculated Geocentric Y coordinate, in meters (output) * Z : Calculated Geocentric Z coordinate, in meters (output) * @param p - lon-lat WGS84 point */ forward(p: VectorPoint): void; /** * Geocentric inverse equations--mapping x-y to lon-lat * @param p - Geocentric point */ inverse(p: VectorPoint): void; } //# sourceMappingURL=geocent.d.ts.map