Offsets a line by given amount in pixels.
amount
List<Point2D> offset(List<Point2D> points, double amount) { final offsetSegments = _offsetPointLine(points, amount); return _joinLineSegments(offsetSegments, amount); }