
23 Feb
2009
23 Feb
'09
8:06 p.m.
On Mon, Feb 23, 2009 at 08:49:30AM +0100, Johann Gail wrote:
double d = 0.00001; if (t[0] > 0) ends[0] = new Coord((int) (y0 + t[0] * dy + d), (int) (x0 + t[0] * dx + d));
Sorry for my answer from yesterday, there is a fault in it. I've thought about it again and think your explanation is wrong. In this case the rounding by 0.0001 makes no sense, as the x and y values are already in internal units, not in degrees. So if you want to round the values, you have to add/subtract 0.5!
Ahh, you are right, those things are already in map units. I was thinking they were in lat/long. You should probably ignore everything I said on the subject! ..Steve