リファレンス · 印刷できるシート: 色をぬる地球と世界地図、わたしの国、昼と夜、季節
terminator関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The line between day and night at a moment: the points 90 degrees from where the Sun is straight overhead, as longitude and latitude.
インポート
import { terminator } from "@johnmorrisdotca/chikyu-earth/sheets";
定義
function terminator(ms: number, points?: number): [number, number][]
引数
| 名前 | 型 | 説明 |
|---|---|---|
ms | number | The moment, in milliseconds since the Unix epoch. |
points (省略可) | number | How many points (at least 3, default 72). |
戻り値
[number, number][]
The points in order round the Earth.
例
import { terminator } from "@johnmorrisdotca/chikyu-earth/sheets";
console.log(terminator(Date.UTC(2026, 2, 20, 12), 8).length);8出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。