mix static method

void mix(
  1. Vector2 min,
  2. Vector2 max,
  3. double a,
  4. Vector2 result
)

Interpolate between min and max with the amount of a using a linear interpolation and store the values in result.

Implementation

static void mix(Vector2 min, Vector2 max, double a, Vector2 result) {
  result
    ..x = min.x + a * (max.x - min.x)
    ..y = min.y + a * (max.y - min.y);
}