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.x = a.x + b.x * scale;
  result.y = a.y + b.y * scale;
  return result;
}