
Simplified algorithm for determination of angle between two bearing and the direction of deflection.
2ベアリングと偏向方向との角度を決定するためのアルゴリズムを単純化。

Algoritma ringkas untuk penentuan sudut antara dua bearing dan arah pesongan.
Available in v1.0.0 (under development)
Tersedia dalam v1.0.0 (sedang dibangunkan)
(開発中)V1.0.0で使用可能

Old method / Kaedah terdahulu / 旧法 :

New method / kaedah baru / 新方式 :

First, find the angle of reflection for bearing in.
Mula-mula dapatkan sudut refleksi bagi bearing masuk.
まず、軸受での反射の角度を見つけます。


- The calculation of angle made by obtaining the smallest angle.
最小の角度を求めるとのなす角度を算出。
Pengiraan sudut dibuat dengan mendapatkan nilai sudut terkecil.
h1 = 60°; (bearing in)
h2 = -50°; (bearing out)
- get reflection angle for h1
h1のための反射角を得る。
dapatkan sudut refleksi bagi h1.
h1a = h1° < 0°? h1° + 180° (value if true) : h1° -180° (value if false);
h1a = 60° < 0°? 60° + 180° : 60° -180° ;
h1a = 60° > 0°? 60° -180° ;
h1a = -120° ; (reflection angle for h1)
- Get intersection angle, x°.
交差角度、X°を入手してください。
dapatkan sudut persilangan x°
intersection angle = Math.min((h1a - h2) < 0 ? h1a - h2 + 360 : h1a - h2, (h2 - h1a) < 0 ? h2 - h1a + 360 : h2 - h1a);
intersection angle = Math.min((-120° + 50°) < 0° ? -120° +50° + 360° : -120° +50°, (-50° + 120°) < 0° ? -50° + 120° + 360° : -50° +120°);
intersection angle = Math.min(-70° < 0° ? 290°, 70° < 0° ? 70°);
intersection angle = Math.min(290°, 70°); (get minimum value)
intersection angle = 70°;
direction of deflection / arah pesongan / 偏向方向

negative deflection (- ve) or to the left : h2° between h1a° to 0° AND 0° to h1° positive deflection (+ ve) or to the right : h2° between h1a° to -180° AND h1° to 180° | 左または負のたわみ(-VE)![]() h2° : h1a° ~ 0°, 0° ~ h1°. 右または正たわみ(+ VE) ![]() h2° : h1a° ~ -180°, h1° ~ 180°. |
pesongan negatif (-ve ) atau ke kiri : h2° antara h1a° ke 0° DAN 0° ke h1° pesongan positif (+ve ) atau ke kanan : h2° antara h1a° ke -180° DAN h1° ke 180° |


GB Maps ギビマップ - © Karya IT 2012-2013. All rights reserved. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

0 comments:
Post a Comment