[63] Profil-Steigung über jsnum::tan (libm)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
Claude committed 2026-11-05 02:24:54 +00:00
1 parent c4bf89f6ec
commit 729fffae38
1 file changed
+1 -1
+1 -1
View File
@@ -716,7 +716,7 @@ pub struct Profile {
fn profile_of(r: &crate::model::SiteRules, base: f64) -> Option<Profile> {
let a = r.profile_angle.filter(|a| a.is_finite() && *a > 0.0 && *a < 90.0)?;
let h = r.profile_height.filter(|h| h.is_finite()).unwrap_or(0.0);
Some(Profile { h0: base + h, slope: a.to_radians().tan() })
Some(Profile { h0: base + h, slope: crate::jsnum::tan(a.to_radians()) })
}
/// Zulässige Höhe (absolut) des Profils am Punkt p.