Updated 'generalize' methods to allow for generalizations over distance.
Updated 'generalize' methods to allow for generalizations over a predefined segment length.
Updated signature of 'generalize' methods to improve code maintainability. Added further regression tests.
Updated 'generalize' methods to allow for simplifying the given geometry.
Added 'toPoints' argument.