v3Combine static method

List<double> v3Combine(
  1. List<double> a,
  2. List<double> b,
  3. double aScale,
  4. double bScale,
)

Implementation

static List<double> v3Combine(
    List<double> a, List<double> b, double aScale, double bScale) {
  return [
    aScale * a[0] + bScale * b[0],
    aScale * a[1] + bScale * b[1],
    aScale * a[2] + bScale * b[2]
  ];
}