/*****************************************************************************************************************/ /*****************************************************************************************************************/ import type { CartesianCoordinate, HorizontalCoordinate } from './common'; /*****************************************************************************************************************/ /** * * convertHorizontalToStereo() * * @param horizontalCoordinate * @param width * @param height * @returns the Cartesian Coordinate { x, y } conversion to the stereographic projection */ export declare function convertHorizontalToStereo(target: HorizontalCoordinate, extent: { width: number; height: number; }, focus?: number): CartesianCoordinate; /*****************************************************************************************************************/ /** * * convertStereoToHorizontal() * * @param cartesianCoordinate representing the { x, y } position of a particular point to transform. * @param width (of type number) representing the width of the projected "canvas" * @param height (of type number) representing the height of the projected "canvas" * @returns the Horizontal Coordinate { alt, az } conversion from the stereographic projection */ export declare function convertStereoToHorizontal(cartesianCoordinate: CartesianCoordinate, extent: { width: number; height: number; }, focus?: number): HorizontalCoordinate; /*****************************************************************************************************************/ /** * * convertHorizontalToPolar() * * Performs an azimuthal equidistant ("polar") projection of a horizontal * coordinate onto a flat "canvas", centered on the observer's zenith. The * radial distance from the center is directly proportional to the zenith * distance (90° - alt), such that the zenith maps to the center and the * horizon maps to the outermost circle. * * @param target the Horizontal Coordinate { alt, az } of the point to transform. * @param extent the width and height of the projected "canvas". * @param focus a scaling factor for the radial extent of the projection. * @returns the Cartesian Coordinate { x, y } conversion to the polar projection */ export declare function convertHorizontalToPolar(target: HorizontalCoordinate, extent: { width: number; height: number; }, focus?: number): CartesianCoordinate; /*****************************************************************************************************************/ /** * * convertPolarToHorizontal() * * Performs the inverse of the azimuthal equidistant ("polar") projection, * converting a Cartesian Coordinate { x, y } on the projected "canvas" back to * the Horizontal Coordinate { alt, az } it represents. * * @param cartesianCoordinate the { x, y } position of a particular point to transform. * @param extent the width and height of the projected "canvas". * @param focus a scaling factor for the radial extent of the projection. * @returns the Horizontal Coordinate { alt, az } conversion from the polar projection */ export declare function convertPolarToHorizontal(cartesianCoordinate: CartesianCoordinate, extent: { width: number; height: number; }, focus?: number): HorizontalCoordinate; /*****************************************************************************************************************/