max static method Null safety

void max(
  1. Vector4 a,
  2. Vector4 b,
  3. Vector4 result
)

Set the values of result to the maximum of a and b for each line.

Implementation

static void max(Vector4 a, Vector4 b, Vector4 result) {
  result
    ..x = math.max(a.x, b.x)
    ..y = math.max(a.y, b.y)
    ..z = math.max(a.z, b.z)
    ..w = math.max(a.w, b.w);
}