HorizontalOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How to read the position and whether to bend the light.
インポート
import type { HorizontalOptions } from "@johnmorrisdotca/hoshi-stars/sky";
定義
interface HorizontalOptions {
equinox?: "J2000" | "date";
refraction?: boolean;
pressureHpa?: number;
temperatureC?: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
equinox (省略可) | "J2000" | "date" | undefined |
|
refraction (省略可) | boolean | undefined | True to lift the altitude by the air's bending of light (Saemundsson's formula, Meeus 16.4): about 0.48 degrees at the horizon, 0.02 at 45 degrees up. Default false, the geometric altitude. Not applied below -1 degree, where the formula stops being true. |
pressureHpa (省略可) | number | undefined | Air pressure in hectopascals for the refraction; default 1010 (a standard sea-level day). Only used with |
temperatureC (省略可) | number | undefined | Air temperature in degrees Celsius for the refraction; default 10. Only used with |
例
import type { HorizontalOptions } from "@johnmorrisdotca/hoshi-stars/sky";
const options: HorizontalOptions = { refraction: true, pressureHpa: 900, temperatureC: -5 };
console.log(options.refraction);true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。