computeScaleDelta static method

double computeScaleDelta({
  1. required Size sourceSize,
  2. required Size targetSize,
})

Computes the geometric scale ratio √(targetArea / sourceArea).

Implementation

static double computeScaleDelta({
  required Size sourceSize,
  required Size targetSize,
}) =>
    LiquidMorphPhysics.computeScaleDelta(
      sourceSize: sourceSize,
      targetSize: targetSize,
    );