# | Line 70 | Line 70 | SDsquare2disk(double ds[2], double seedx, double seedy | |
---|---|---|
70 | phi = 0.; | |
71 | } | |
72 | } | |
73 | < | |
73 | > | r *= 0.9999999999999; /* prophylactic against MS sin()/cos() impl. */ |
74 | ds[0] = r * cos(phi); | |
75 | ds[1] = r * sin(phi); | |
76 | ||
# | Line 102 | Line 102 | SDdisk2square(double sq[2], double diskx, double disky | |
102 | a = -(phi - 3*M_PI/2) * b / (M_PI/4); | |
103 | } | |
104 | ||
105 | < | sq[0] = (a + 1) * 0.5; |
106 | < | sq[1] = (b + 1) * 0.5; |
105 | > | sq[0] = a*(0.5/0.9999999999999) + 0.5; |
106 | > | sq[1] = b*(0.5/0.9999999999999) + 0.5; |
107 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |