mix method

void mix (Vector2 min, Vector2 max, double a, 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);
}