offset

fun Segment2D.offset(distance: Double, stepSize: Double = 0.01, yPolarity: YPolarity = YPolarity.CW_NEGATIVE_Y): List<Segment2D>(source)


fun ShapeContour.offset(distance: Double, joinType: SegmentJoin = SegmentJoin.ROUND): ShapeContour(source)

Offsets a ShapeContour's Segments by given distance.

Segments are moved outwards if distance is > 0 or inwards if distance is < 0.

Parameters

joinType

Specifies how to join together the moved Segments.