SVG: Pfadfragment für eine Spirale vom Typ Lituus bestimmen / Determine a spiral type lituus path fragment
Nach Angabe von GET-Parametern wird ein Spiralbogen als SVG-Kurve ermittelt und dargestellt,
nicht angegebene Parameter werden zufällig gesetzt (Ausnahme anz und rnd).
Um die Qualität der Näherung abzuschätzen, wird ein Vergleich mit einer Näherung mit
doppelter Punktzahl durchgeführt, bei größeren Unterschieden ist die Anzahl der Punkte zu
erhöhen.
cx, cy: Zentrum der Spirale
ra: Radius r = sqrt(ra/phi) (ra in Grad)
phi0: Anfangswinkel > 0
theta: Endwinkel von x-Achse aus
anz: Anzahl der Stützstellen (ohne Angabe wird eine Winkeldifferenz von um die 30 Grad angenommen
und daraus wird dann anz automatisch bestimmt).
rnd: Anzahl der Rundungsstellen
Due to given GET parameters a spiral arc is determined as SVG curve and painted,
not specified parameters are choosen randomly (exception anz and rnd).
To estimate the quality of the approximation, a comparison is given with another approximation
with twice the number of points, with larger deviations the number of points needs to be
enhanced.
cx, cy: center of the spiral
ra: Radius r = sqrt(ra/phi) (ra in degree)
phi0: initial angle > 0
theta: final angle from x-axis
anz: Number of curve points (if not specified, the angle difference about 30 degree is choosen
and anz is determined automatically).
rnd: the digits to be rounded in the fractional part of numbers in the output
Zentrum / centre
maximaler Fehler / maximal error
Pfadvergleich doppelte Punktanzahl / path comparsion, twice the number of points
Approximierter Pfad / approximated path
Punkte / points
?cx=0&cy=0&ra=1000&theta=720&phi0=1&anz=24&rnd=2
Aktuelle Werte / Current Values
0.22243745124853 | 0.0069653934010662
Fehler maximal, mittel / Error maximum, average
M31.62 0.55 C31.62 0.55 24.99 0.67 21.07 0.83 S
14.67 1.16 12.85 1.35
9.82 1.73 8.84 1.92
7.1 2.29
6.45 2.47
5.24 2.82 4.71 2.97
3.71 3.25 3.24 3.35
2.32 3.52 1.87 3.55
0.98 3.55 0.56 3.47
-0.28 3.26
-0.66 3.06
-1.37 2.6 -1.65 2.29
-2.14 1.6 -2.27 1.2
-2.42 0.38 -2.35 -0.03
-2.11 -0.83 -1.84
-1.15
-1.23 -1.71 -0.83 -1.84
-0.01 -1.97 0.39 -1.84
1.13 -1.46 1.36 -1.12
1.71 -0.36 1.66 0.05
1.41
0.85 1.1 1.12
0.37 1.53 -0.04 1.49
-0.84 1.23 -1.09 0.9
-1.42 0.13 -1.32 -0.27
-0.92 -1.01 -0.54
-1.17
0.3 -1.28 0.64 -1.05
1.19 -0.41 1.18 -0
Kubische Näherung / Cubic Approximation