milkyWayBrightness関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How bright the Milky Way is toward a point, as a display value from 0 (dark sky) to 1 (the brightest part of the core, in Sagittarius). It follows the band along the galactic equator, is brightest toward the Galactic centre, and is dimmer where the dust lanes cross it (the Great Rift, the Coalsack, the Cygnus Rift). The grid is 0.5 degrees on a side near the plane and holds thirty-two levels, so it is a smooth map for shading a chart or a texture, not a measurement; beyond 30 degrees of the plane it is 0. The values are already shaped for the eye (a gamma of about 0.45), so use them as a pixel's brightness directly.
インポート
import { milkyWayBrightness } from "@johnmorrisdotca/hoshi-stars/milky-way";
定義
function milkyWayBrightness(point: SkyPoint): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
point | SkyPoint | A right ascension and declination in degrees (J2000). |
戻り値
number
A number from 0 to 1.
例
import { milkyWayBrightness } from "@johnmorrisdotca/hoshi-stars/milky-way";
const sagittarius = milkyWayBrightness({ rightAscension: 266.4, declination: -28.9 });
const pole = milkyWayBrightness({ rightAscension: 192.9, declination: 27.1 });
console.log(sagittarius > pole); // truetrue出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。