@@ -8,32 +8,7 @@ export function polarToCartesian(cx, cy, r, angleDeg) {
88 return { x : cx + r * Math . cos ( rad ) , y : cy + r * Math . sin ( rad ) } ;
99}
1010
11- export function getOffsetPosition ( cx , cy , r , angleDeg , offset = 0 ) {
12- const base = polarToCartesian ( cx , cy , r , angleDeg ) ;
13- if ( offset === 0 ) return base ;
14- const rad = ( ( angleDeg - 90 ) * Math . PI ) / 180 ;
15- return {
16- x : base . x + offset * Math . cos ( rad ) ,
17- y : base . y + offset * Math . sin ( rad ) ,
18- } ;
19- }
20-
2111export function detectBrowserLanguage ( ) {
2212 const nav = navigator . language || navigator . userLanguage || "" ;
2313 return nav . startsWith ( "de" ) ? "de" : "en" ;
2414}
25-
26- // export function getTierIndex(values) {
27- // const mx = Math.max(...Object.values(values));
28- // return mx <= 1 ? 0 : mx <= 2 ? 1 : mx <= 3 ? 2 : 3;
29- // }
30-
31- // export function polarToCartesian(cx, cy, r, angleDeg) {
32- // const rad = ((angleDeg - 90) * Math.PI) / 180;
33- // return { x: cx + r * Math.cos(rad), y: cy + r * Math.sin(rad) };
34- // }
35-
36- // export function detectBrowserLanguage() {
37- // const nav = navigator.language || navigator.userLanguage || "";
38- // return nav.startsWith("de") ? "de" : "en";
39- // }
0 commit comments