local X=Vector3.new local F=NumberSequenceKeypoint.new(0,1,0)local e=NumberSequenceKeypoint.new(1,1,0)local D={}for X,F in pairs(RAIN_VOLUME_SCAN_GRID)do table.insert(D,F*RAIN_VOLUME_SCAN_RADIUS)end table.sort(D,function(X,F)return X.magnitude<F.magnitude end)

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)
