SkyPoint型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A point on the celestial sphere, in degrees. Right ascension may be any number (it wraps at 360); declination is -90 to 90.
インポート
import type { SkyPoint } from "@johnmorrisdotca/hoshi-stars/projection";
ほかのエクスポート元: @johnmorrisdotca/hoshi-stars/milky-way, @johnmorrisdotca/hoshi-stars/sky
定義
interface SkyPoint {
rightAscension: number;
declination: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
rightAscension | number | Right ascension in degrees. |
declination | number | Declination in degrees, -90 to 90. |
例
import type { SkyPoint } from "@johnmorrisdotca/hoshi-stars/projection";
const polaris: SkyPoint = { rightAscension: 37.95, declination: 89.26 };
console.log(polaris.declination);89.26出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。