local v=Vector3.new local R=NumberSequenceKeypoint.new(0,1,0)local E=NumberSequenceKeypoint.new(1,1,0)local e={}for v,R in pairs(RAIN_VOLUME_SCAN_GRID)do table.insert(e,R*RAIN_VOLUME_SCAN_RADIUS)end table.sort(e,function(v,R)return v.magnitude<R.magnitude end)
-- shorthands
local v3 = Vector3.new
local NSK010 = NumberSequenceKeypoint.new(0, 1, 0)
local NSK110 = NumberSequenceKeypoint.new(1, 1, 0)

local volumeScanGrid = {} -- Pre-generate grid used for raining area distance scanning
for _, v in pairs(RAIN_VOLUME_SCAN_GRID) do
	table.insert(volumeScanGrid, v * RAIN_VOLUME_SCAN_RADIUS)
end
table.sort(volumeScanGrid, function(a, b) -- Optimization: sort from close to far away for fast evaluation if closeby
	return a.magnitude < b.magnitude
end)
