OneToOneOffsetPairing

Similar to OneToOnePairing, except the pairs are offset. So point 0 of shapeA is paired to point offset of shapeB, and point 1 of shapeA is paired to offset + 1 of shapeB etc.

offset may be negative.

Offsets can introduce a twist into extrusions. An offset can also be used to "line up" shapes, which have the same number of points, but the first point of shapeA does not correspond to the first point of shapeB.

Constructors

Link copied to clipboard
constructor(offset: Int)

Properties

Link copied to clipboard
val offset: Int

Functions

Link copied to clipboard
open override fun pairPoints(shapeA: List<Vector2>, shapeB: List<Vector2>): List<Pair<Int, Int>>

Returns a list of edges, which should be ordered clockwise.