generator_mamableSet_shoot static method

Generator<MamableSet<MamableSingle>> generator_mamableSet_shoot(
  1. Offset delta, {
  2. Generator<double> distribution = FKeep.generateDouble,
  3. (Curve, Curve)? curve,
  4. required Alignment alignmentScale,
  5. required int total,
})

Implementation

static Generator<MamableSet> generator_mamableSet_shoot(
  Offset delta, {
  Generator<double> distribution = FKeep.generateDouble,
  (Curve, Curve)? curve,
  required Alignment alignmentScale,
  required int total,
}) {
  final interval = 1 / total;
  return (index) => FMatable.mamableSet_shoot(
        alignmentScale: alignmentScale,
        sliding: FMatalue.offset_0To(
          delta * distribution(index),
          curve: curve,
        ),
        scaling: FMatalue.between_double_1From(
          0.0,
          curve: curve.nullOrMap(CurveCurve.applyIntervalToEnd(interval * index)),
        ),
      );
}