# | Line 10 | Line 10 | Cz : 0.586571000768196; | |
---|---|---|
10 | n : 29.629194300125050; | |
11 | ||
12 | { Useful functions } | |
13 | – | max(a,b) : if(a-b, a, b); |
13 | abs(x) : if(x, x, -x); | |
14 | noneg(x) : if(x, x, 0); | |
15 | ||
16 | { Normalization factor based on parameters } | |
17 | < | snf : (n+2)/(2*PI*max(abs(Cx),max(abs(Cy),abs(Cz)))^n); |
17 | > | snf : (n+2)/(2*PI*max(abs(Cx),abs(Cy),abs(Cz))^n); |
18 | ||
19 | { Note that we assume i and o vectors are normalized, both pointing away } | |
20 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |