MapPoint型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A point on the chart. x runs to the right and y UP (north above the centre), in the units of scale; flip y when you draw on a screen.
インポート
import type { MapPoint } from "@johnmorrisdotca/hoshi-stars/projection";
定義
interface MapPoint {
x: number;
y: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
x | number | Across the chart, to the right. East is to the left unless |
y | number | Up the chart. |
例
import type { MapPoint } from "@johnmorrisdotca/hoshi-stars/projection";
const middle: MapPoint = { x: 0, y: 0 };
console.log(middle.x + middle.y);0出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。