lerpBool function

bool? lerpBool(
  1. bool? a,
  2. bool? b,
  3. double t
)

Linearly interpolate between two boolean.

Implementation

bool? lerpBool(bool? a, bool? b, double t) => t < 0.5 ? a : b;