starTemperatureK関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The surface temperature a colour index implies, in kelvin, by Ballesteros's relation between B-V and a black body. It is an estimate to a few hundred kelvin for most stars, and it runs cool for the hottest (about 16,600 K at -0.3).
インポート
import { starTemperatureK } from "@johnmorrisdotca/hoshi-stars";
定義
function starTemperatureK(colourIndex: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
colourIndex | number | B-V in magnitudes. |
戻り値
number
Kelvin.
例
import { starTemperatureK } from "@johnmorrisdotca/hoshi-stars";
console.log(Math.round(starTemperatureK(0.65)));5778出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。