offset method

List<Point2D> offset(
  1. List<Point2D> points,
  2. double amount
)

Offsets a line by given amount in pixels.

Implementation

List<Point2D> offset(List<Point2D> points, double amount) {
  final offsetSegments = _offsetPointLine(points, amount);
  return _joinLineSegments(offsetSegments, amount);
}