mutatePartners MethodStatic

Construct a CurveCollection with the same structure as collectionA and collectionB, with primitives constructed by the caller-supplied primitiveMutator function.

mutatePartners(collectionA: CurveCollection, collectionB: CurveCollection, primitiveMutator: CurvePrimitiveMutator): CurveCollection | undefined

Parameter Type Description
collectionA CurveCollection  
collectionB CurveCollection  
primitiveMutator CurvePrimitiveMutator  

Returns - CurveCollection | undefined

Returns undefined if there is any type mismatch between the two collections.

Defined in

Last Updated: 13 June, 2024