Skip to content

Degrees - #19

Merged
AleMorales merged 3 commits into
masterfrom
degrees
Jun 11, 2026
Merged

Degrees#19
AleMorales merged 3 commits into
masterfrom
degrees

Conversation

@AleMorales

Copy link
Copy Markdown
Member

All public-facing angle parameters (θ, Φ, α, alpha_soil, beta_soil) in FixedSource, DirectionalSource, and the internal helpers polar_to_cartesian and rotate_coordinates now accept and expect degrees. Trig functions updated to their degree counterparts (cosd, sind, acosd) throughout Materials/ (Lambertian, Phong) and Sources/ (SourceAngle). Default values updated (α = 180.0, beta_soil = 180.0). All tests updated to match.

AleMorales and others added 3 commits June 11, 2026 13:20
All public-facing angle parameters (θ, Φ, α, alpha_soil, beta_soil) in
FixedSource, DirectionalSource, and the internal helpers polar_to_cartesian
and rotate_coordinates now accept and expect degrees. Trig functions updated
to their degree counterparts (cosd, sind, acosd) throughout Materials/
(Lambertian, Phong) and Sources/ (SourceAngle). Default values updated
(α = 180.0, beta_soil = 180.0). All tests updated to match.

Also widens the borderline BVH/Naive consistency tolerance in test_graphs.jl
(6e-5 → 1e-4) to account for tiny floating-point differences between cosd
and cos(deg2rad(…)); the comment in that test already noted the divergence
was non-zero and non-decreasing with nrays.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@AleMorales
AleMorales merged commit d8a6a32 into master Jun 11, 2026
1 check failed
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.

1 participant