averbraeck / djutils

Delft Java Utilities for statistics, stochastics, data analysis and serialization
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Transfer `ContinuousLine` concept from OTS to djutils-draw #44

Closed WJSchakel closed 23 hours ago

Peter-Knoppers commented 1 week ago

This is slightly more involved than initially thought. Kinks can be "caused" by the offsets in FractionalLengthData, but they could also come from the ContinuousLine itself. The different Flatteners need to handle kinks differently. E.g. the MaxDeviation flattener should consider the directions on each side of a kink separately and not try to "cross over" the kink in a smooth way, because that is not possible. The NumSegments flattener should probably ignore any kink data.

Peter-Knoppers commented 23 hours ago

Implemented & tested.