percentOfBoxToFactor static method

double percentOfBoxToFactor(
  1. double percent
)

Converts a 0…100 percent into a 0…1 factor (clamped).

Implementation

static double percentOfBoxToFactor(double percent) =>
    (percent / 100.0).clamp(0.0, 1.0);