Projection型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The kinds of projection.
stereographic: keeps shapes (conformal); the whole sphere but the antipode, stretching to the edge. Radius 2 at 90 degrees from the centre.orthographic: the sky as a ball seen from far away; the near hemisphere only. Radius 1 at 90 degrees.gnomonic: great circles are straight lines; less than 90 degrees from the centre.equidistant: the azimuthal equidistant; distance from the centre is true, the whole sphere is a disc of radius pi.equirectangular: the plain right ascension and declination plot; the centre's declination moves the chart up or down.mollweide: an equal-area oval of the whole sky, turned so the centre is its middle.hammer: Hammer's equal-area oval of the whole sky (often called Hammer-Aitoff), turned so the centre is its middle.
インポート
import type { Projection } from "@johnmorrisdotca/hoshi-stars/projection";
定義
type Projection = (typeof PROJECTIONS)[number];
例
import { PROJECTIONS, type Projection } from "@johnmorrisdotca/hoshi-stars/projection";
const kind: Projection = PROJECTIONS[0];
console.log(kind, PROJECTIONS.length);stereographic 7出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。