Closed ELennard closed 3 years ago
RemoveMiddlePoints removed the first point from points, while it should not delete the startpoint.
yarn run pretty
Fixes the removeMiddlePoints function in the LinkModel.
The removeMiddlePoints function removes the startpoint of a link. The function should only remove points between start and endpoint.
Updated the function to skip the first point.
RemoveMiddlePoints removed the first point from points, while it should not delete the startpoint.
Checklist
yarn run pretty
What?
Fixes the removeMiddlePoints function in the LinkModel.
Why?
The removeMiddlePoints function removes the startpoint of a link. The function should only remove points between start and endpoint.
How?
Updated the function to skip the first point.
Feel good image: