localConvergence関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The angle, in degrees, between true north and the canvas's up at a place: how much a thing that points at a true
bearing is turned on a local map. Zero on the central meridian, a few hundredths of a degree a kilometre or two east
or west of it; positive east of the centre in the northern hemisphere, where the meridians lean in towards the pole.
A marker at a bearing is turned by its bearing less this (localMap does it).
インポート
import { localConvergence } from "@johnmorrisdotca/chizu";
定義
function localConvergence(centre: readonly [number, number], lon: number, lat: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
centre | readonly [number, number] | The centre of the local map, as [longitude, latitude] in degrees. |
lon | number | The longitude of the place, in degrees. |
lat | number | The latitude of the place, in degrees. |
戻り値
number
The angle, in degrees, between the grid's north and true north there; positive east of the centre.
例
import { localConvergence } from "@johnmorrisdotca/chizu";
console.log(localConvergence([139.7671, 35.6812], 139.7671, 35.69), localConvergence([139.7671, 35.6812], 139.85, 35.69) > 0);
// 0 true0 true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。