min method

Vector3 min(
  1. Vector3 v
)

If this vector's x, y or z value is greater than v's x, y or z value, replace that value with the corresponding min value.

Implementation

Vector3 min(Vector3 v) {
  x = math.min(x, v.x);
  y = math.min(y, v.y);
  z = math.min(z, v.z);

  return this;
}