From 729fffae38e5599aff5c3ace567554a0b1575aee Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Nov 2026 02:24:54 +0000 Subject: [PATCH] =?UTF-8?q?[63]=20Profil-Steigung=20=C3=BCber=20jsnum::tan?= =?UTF-8?q?=20(libm)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67 --- src-tauri/core/src/site_rules.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/core/src/site_rules.rs b/src-tauri/core/src/site_rules.rs index 5ab9e310..5a443937 100644 --- a/src-tauri/core/src/site_rules.rs +++ b/src-tauri/core/src/site_rules.rs @@ -716,7 +716,7 @@ pub struct Profile { fn profile_of(r: &crate::model::SiteRules, base: f64) -> Option { 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.