function shortestAngle
observer.ts:387
shortestAngle(from: number, to: number) → number
The signed rotation from from to to, in (−π, π].
Azimuth is unbounded — it accumulates as you drag — so two headings that name the same direction can be many turns apart numerically. Easing between the raw numbers spins the camera around the body six times to arrive where it already was.
- fromnumber
- Undocumented
- tonumber
- Undocumented
Returnsnumber