fromGalactic関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The right ascension and declination (J2000) of a point given in galactic coordinates.
インポート
import { fromGalactic } from "@johnmorrisdotca/hoshi-stars/milky-way";
定義
function fromGalactic(point: GalacticPoint): SkyPoint
引数
| 名前 | 型 | 説明 |
|---|---|---|
point | GalacticPoint | A galactic longitude and latitude in degrees. |
戻り値
SkyPoint
Right ascension 0 up to but not including 360, declination -90 to 90.
例
import { fromGalactic } from "@johnmorrisdotca/hoshi-stars/milky-way";
console.log(fromGalactic({ longitude: 0, latitude: 0 })); // about { rightAscension: 266.4, declination: -28.9 }{ rightAscension: 266.4049948010461, declination: -28.936173960138678 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。