@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.
49 lines (48 loc) • 2.46 kB
TypeScript
/*****************************************************************************************************************/
/*****************************************************************************************************************/
/**
*
* Interpolates points between a start and end coordinate with a given precision.
*
* @param {number[]} start - The starting coordinate [x, y].
* @param {number[]} end - The ending coordinate [x, y].
* @param {number} precision - The precision of the interpolation.
* @returns {number[][]} - The interpolated coordinates.
*
*/
export declare const interpolate: (start: number[], end: number[], precision: number) => number[][];
/*****************************************************************************************************************/
/**
*
* Interpolates points between a start and end coordinate with a given precision on the geodesic.
*
* @param {number[]} start - The starting coordinate [x, y].
* @param {number[]} end - The ending coordinate [x, y].
* @param {number} precision - The precision of the interpolation.
* @returns {number[][]} - The interpolated coordinates.
*
*/
export declare const interpolateGeodesic: (start: number[], end: number[], precision: number) => number[][];
/*****************************************************************************************************************/
/**
*
* Interpolates a rank 2D array of coordinates with a given precision.
*
* @param {number[][]} coordinates - The array of coordinates to interpolate.
* @param {number} precision - The precision of the interpolation. Defaults to 1.
* @returns {number[][]} - The interpolated coordinates.
*
*/
export declare function interpolateRank2DArray(coordinates: number[][], precision?: number): number[][];
/*****************************************************************************************************************/
/**
*
* Interpolates a rank 2D array of coordinates with a given precision on the geodesic.
*
* @param {number[][]} coordinates - The array of coordinates to interpolate.
* @param {number} precision - The precision of the interpolation. Defaults to 1.
* @returns {number[][]} - The interpolated coordinates.
*
*/
export declare function interpolateRank2DGeodesicCoordinateArray(coordinates: number[][], precision?: number): number[][];
/*****************************************************************************************************************/