Intermact API Reference / @intermact/core / pairContours
Function: pairContours()
pairContours(
from,to,count):AlignedMorph
Defined in: packages/core/src/animation/morph.ts:103
Pair two contour sets by descending length (design.md §11.4: match by area/length). Each pair is arc-length resampled to count; the shorter set is padded with collapsed contours so unmatched contours grow/shrink in place.
Parameters
from
readonly NormalizedContour[]
to
readonly NormalizedContour[]
count
number