リファレンス · 地球周回軌道のカタログ: 軌道の分類、物体の種類、色、衛星群、パック形式のファイル(データは含みません)
fleetOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The fleet an object belongs to, from its name and kind, or undefined.
インポート
import { fleetOf } from "@johnmorrisdotca/chikyu-earth/catalogue";
定義
function fleetOf(name: string, kind?: ObjectKind): string | undefined
引数
| 名前 | 型 | 説明 |
|---|---|---|
name | string | The object's name as the catalogue writes it, in any case. |
kind (省略可) | ObjectKind | undefined | Its kind; a rocket body, debris or unknown object is in no fleet. Left out, the name alone decides. |
戻り値
string | undefined
The fleet's id, or undefined when the object belongs to none.
例
import { fleetOf } from "@johnmorrisdotca/chikyu-earth/catalogue";
console.log(fleetOf("STARLINK-1007", "PAY"), fleetOf("IRIDIUM 33 DEB", "DEB"), fleetOf("NAVSTAR 48 (USA 151)"), fleetOf("HST"));starlink undefined gps undefined出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。