@observerly/astrometry
Version:
observerly's lightweight, zero-dependency, type safe astrometry library written in Typescript for calculating the position of celestial objects in the sky.
33 lines (32 loc) • 1.61 kB
TypeScript
/*****************************************************************************************************************/
/*****************************************************************************************************************/
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 const 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 const convertStereoToHorizontal: (cartesianCoordinate: CartesianCoordinate, extent: {
width: number;
height: number;
}, focus?: number) => HorizontalCoordinate;
/*****************************************************************************************************************/