@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.
30 lines (29 loc) • 1.62 kB
TypeScript
/*****************************************************************************************************************/
/*****************************************************************************************************************/
import type { CartesianCoordinate } from './common';
/*****************************************************************************************************************/
type FocalRatio = `f/${number}`;
/*****************************************************************************************************************/
/**
*
* getFocalRatio()
*
* @param apertureWidth - the aperture of the optics
* @param focalLength - the focal length of the optics
* @returns the focal ratio as a string formatted in the standard focal ratio, e.g., f/x.
*/
export declare function getFocalRatio(apertureWidth: number, focalLength: number): FocalRatio;
/*****************************************************************************************************************/
/**
*
* getFieldOfView()
*
* @param focalLength - the focal length of the optics (in meters)
* @param pixelSize - the pixel size of the camera (in meters)
* @param resolution - the resolution of the camera (in pixels)
* @param binning - the binning of the camera (in pixels)
* @returns the field of view (FOV) of the camera (in degrees)
*/
export declare function getFieldOfView(focalLength: number, pixelSize: number, resolution: Omit<CartesianCoordinate, 'z'>): Omit<CartesianCoordinate, 'z'>;
export {};
/*****************************************************************************************************************/