Open GoogleCodeExporter opened 9 years ago
Well, in fact, Solution 2 (deep revision) is really simple:
Just replace:
for (int i = 0, j = numberOfPoints + 1; i < j; i++){
final double f = 1.0 / numberOfPoints * i;
By:
for (int i = 1; i < numberOfPoints; i++){
final double f = 1.0 * i / (numberOfPoints+1);
Now, addGreatCircle adds exactly "numberOfPoints" intermediate points.
And it doesn't add startPoint and endPoint - which is more flexible, for
instance when we want to add successive great circle segments.
I can send the updated method, including also minor improvements (using
MathConstants.DEG2RAD).
Original comment by mathieu....@gmail.com
on 17 Feb 2014 at 4:57
Solution is here:
http://code.google.com/p/osmbonuspack/source/browse/trunk/OSMBonusPack/src/org/o
smdroid/bonuspack/overlays/Polyline.java
Original comment by mathieu....@gmail.com
on 19 Mar 2014 at 11:56
Original issue reported on code.google.com by
mathieu....@gmail.com
on 16 Feb 2014 at 9:30