A Displacement Vector and Its Bearing
A planar bearing can be computed from a nonzero displacement using an angle function that preserves quadrant information.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace a relative target in a simulator
From \((1,1)\) to \((1,4)\), displacement is \((0,3)\), which points along positive y. In x-right, y-up axes its angle is ninety degrees from positive x. See position and heading.
Check the zero displacement
At an identical position there is no unique direction. Use a documented absent outcome and compare headings with the angle wrap rule.[1]