Skip to content

Fix HorizonAngle: Include 0° in first quadrant for ray-tracing#474

Open
leleist wants to merge 1 commit intojblindsay:masterfrom
leleist:fix-horizon-angle-0-degree
Open

Fix HorizonAngle: Include 0° in first quadrant for ray-tracing#474
leleist wants to merge 1 commit intojblindsay:masterfrom
leleist:fix-horizon-angle-0-degree

Conversation

@leleist
Copy link
Copy Markdown

@leleist leleist commented Jan 8, 2026

Fixes #321

Previously 0° and 180° produced identical results because 0° was excluded from the first quadrant condition (azimuth > 0) for ray-tracing. This fix changes the condition to >= 0 so that 0° is correctly handled as north-facing rather than falling through to the second quadrant.

For testing:

  • compared 0 and 180° to ensure they are not identical.
  • computed horizon angles across full 360° azimuth range in 1° increments (-> smooth angular transitions, no "jumps").

horizon_360_test_compressed

Previously 0° and 180° produced identical results because 0° was
excluded from the first quadrant condition (azimuth > 0). This fix
changes the condition to >= 0 so that 0° is correctly handled as
north-facing rather than falling through to the second quadrant."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Question about HorizonAngle

1 participant