Add serialization for Angle.hpp#173
Conversation
|
Not sure if we need to pull boost-serialization into this. Probably an out-of-class definition inside TravNode.hpp would be a less intrusive option? But I don't strictly oppose adding it here. |
|
Unrelated: Why does AngleSegment have a width a start and an end? The end appears to be calculated always in the constructor and I doubt that caching an addition result is worth adding a member variable ... |
Thanks, I'll do that. |
|
@chhtz the out of class definiton works. Thanks! I'll close this MR, alright? |
There is a function getEnd() and endRad is used in various computations. Isn't it worth to have it saved as a member rather than always computing from start and width? |
I kind of doubt that saving one addition is worth storing redundant data. Moreover, it is easy to create an ill-formed representation, by modifying But this should probably be discussed elsewhere. |
Hello @planthaber,
I had to make the TravNode.hpp available over a rock port and it needs the Angle.hpp to be serialized.
Best,
Haider