Closed GoogleCodeExporter closed 9 years ago
I seem to have found the problem;
In this line;
result.setLatLng(
phi2.ConvertRadiansToDegrees(),
Math.Atan2(Math.Sin(heading_rad) * sin_angularDistance * Math.Cos
(phi2), cos_angularDistance - sin_phi1 *
Math.Sin(phi2)).ConvertRadiansToDegrees() +
origin.getLongitude());
The statement origin.getLongitude() returns zero. For some reason it loses its
value. If I capture the value in a double at the top of the method and use
that, it
seems to work.
Original comment by robert.s...@lacota.com
on 31 Oct 2009 at 12:42
The error here is caused by the same problem as Issue 18.
The line;
IKmlPoint result = origin;
is changing the origin object
Original comment by robert.s...@lacota.com
on 1 Nov 2009 at 6:20
Yes, I will amend the methods that return point objects to accept a plug-in
object as a
parameter so that a new 'result' point can be created. Thanks for pointing that
out.
F.
Original comment by fraser.c...@gmail.com
on 1 Nov 2009 at 6:59
Original comment by fraser.c...@gmail.com
on 3 Nov 2009 at 4:48
Original issue reported on code.google.com by
robert.s...@lacota.com
on 31 Oct 2009 at 2:09