Function GeometrySingleton.offsetPolyline2d

Inflates or deflates polyline by delta units (pixels), producing polygons. If delta is positive, makes the polyline grow outward. Returns an array of polygons because inflating/deflating may result in multiple discrete polygons. If delta is negative, returns an empty array. Each polygon's vertices will be rounded as determined by join_type, see polyjointype. Each polygon's endpoints will be rounded as determined by end_type, see polyendtype. The operation may result in an outer polygon (boundary) and inner polygon (hole) produced which could be distinguished by calling isPolygonClockwise.

Array offsetPolyline2d (
  const(PoolArray!(godot.core.vector2.Vector2)) polyline,
  const(double) delta,
  const(long) join_type = 0L,
  const(long) end_type = 3L
) nothrow @nogc;