scaleAndAdd static method

Vec2D scaleAndAdd(
  1. Vec2D result,
  2. Vec2D a,
  3. Vec2D b,
  4. double scale,
)

Implementation

static Vec2D scaleAndAdd(Vec2D result, Vec2D a, Vec2D b, double scale) {
  result[0] = a[0] + b[0] * scale;
  result[1] = a[1] + b[1] * scale;
  return result;
}