function angleBetweenPoints(M,L)local o=M-L return-math.atan2(o.z,o.x)end function getCameraAngle(M)local L,o=M.CoordinateFrame,M.Focus return angleBetweenPoints(L.p,o.p)end
-- Helper functions

function angleBetweenPoints(p0, p1)
	local p = p0 - p1
	return -math.atan2(p.z, p.x)
end

function getCameraAngle(camera)
	local cf, f = camera.CoordinateFrame, camera.Focus
	return angleBetweenPoints(cf.p, f.p)
end
