Changes between Initial Version and Version 1 of Ticket #20982, comment 2


Ignore:
Timestamp:
2021-06-14T06:51:02+02:00 (5 years ago)
Author:
GerdP

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20982, comment 2

    initial v1  
    11The patch adds code to determine the closest point on the segment, taken from Geometry.
    2 An alternative might be to use `Geometry.getSegmentNodeDistSq(EastNorth s1, EastNorth s2, EastNorth p)` and drop the code that is impplemented in SimplifyWayAction.
     2An alternative might be to use `Geometry.getSegmentNodeDistSq(EastNorth s1, EastNorth s2, EastNorth p)` and drop the code that is impplemented in SimplifyWayAction, but those use rather simple distance calculations, so results are different for large objects. Not sure if this matters.