dont quantize distance to 10m, use double for summation

This commit is contained in:
Emil Tin
2012-09-21 22:40:38 +02:00
parent 74cc50f52b
commit 8abbe8db4a
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -26,14 +26,14 @@ or see http://www.gnu.org/licenses/agpl.txt.
struct SegmentInformation {
_Coordinate location;
NodeID nameID;
unsigned length;
double length;
unsigned duration;
double bearing;
short turnInstruction;
bool necessary;
SegmentInformation(const _Coordinate & loc, const NodeID nam, const unsigned len, const unsigned dur, const short tInstr, const bool nec) :
SegmentInformation(const _Coordinate & loc, const NodeID nam, const double len, const unsigned dur, const short tInstr, const bool nec) :
location(loc), nameID(nam), length(len), duration(dur), bearing(0.), turnInstruction(tInstr), necessary(nec) {}
SegmentInformation(const _Coordinate & loc, const NodeID nam, const unsigned len, const unsigned dur, const short tInstr) :
SegmentInformation(const _Coordinate & loc, const NodeID nam, const double len, const unsigned dur, const short tInstr) :
location(loc), nameID(nam), length(len), duration(dur), bearing(0.), turnInstruction(tInstr), necessary(tInstr != 0) {}
};