reorder members of SegmentInformation, remove bit fields where possible
This commit is contained in:
parent
30362cfc0c
commit
1945aae4dc
@ -44,10 +44,10 @@ struct SegmentInformation
|
|||||||
float length;
|
float length;
|
||||||
short bearing; // more than enough [0..3600] fits into 12 bits
|
short bearing; // more than enough [0..3600] fits into 12 bits
|
||||||
TurnInstruction turn_instruction;
|
TurnInstruction turn_instruction;
|
||||||
bool necessary:1;
|
TravelMode travel_mode;
|
||||||
bool is_via_location:1;
|
bool necessary;
|
||||||
TravelMode travel_mode;
|
bool is_via_location;
|
||||||
|
|
||||||
explicit SegmentInformation(const FixedPointCoordinate &location,
|
explicit SegmentInformation(const FixedPointCoordinate &location,
|
||||||
const NodeID name_id,
|
const NodeID name_id,
|
||||||
const EdgeWeight duration,
|
const EdgeWeight duration,
|
||||||
|
Loading…
Reference in New Issue
Block a user