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.

struct GeometrySingleton
@nogc nothrow
Array
offsetPolyline2d
(
in PoolVector2Array polyline
,
in double delta
,
in long join_type = 0
,
in long end_type = 3
)

Meta