Package-level declarations

Functions

Link copied to clipboard
fun Segment2D.offset(distance: Double, stepSize: Double = 0.01, yPolarity: YPolarity = YPolarity.CW_NEGATIVE_Y): List<Segment2D>

fun Shape.offset(distance: Double, joinType: SegmentJoin = SegmentJoin.ROUND, errorTolerance: Double = 0.05, sampleDistance: Double = 1.0): Shape

Offsets a Shape by given distance.

fun ShapeContour.offset(distance: Double, joinType: SegmentJoin = SegmentJoin.ROUND, errorTolerance: Double = 0.05, sampleDistance: Double = 1.0): Shape

Offsets a ShapeContour by given distance.

Link copied to clipboard
fun Segment2D.reduced(stepSize: Double = 0.01): List<Segment2D>
Link copied to clipboard
fun Segment2D.scale(scale: Double, polarity: YPolarity): Segment2D
fun Segment2D.scale(polarity: YPolarity, scale: (Double) -> Double): Segment2D