expandByScalar method

Box2 expandByScalar(
  1. double scalar
)

Implementation

Box2 expandByScalar(double scalar) {
  min.addScalar(-scalar);
  max.addScalar(scalar);

  return this;
}