VE Lua Documentation

Press F to search!

lineBB2d

Definition


-- @/lua/common/mathlib.lua:1271

function lineBB2d(x1, y1, x2, y2, radius)
  local enlarge = radius or 0
  return min(x1, x2) - enlarge, min(y1, y2) - enlarge, max(x1, x2) + enlarge, max(y1, y2) + enlarge
end

Callers