function angleBetweenPoints(V,c)local t=V-c return-math.atan2(t.z,t.x)end function getCameraAngle(V)local c,t=V.CoordinateFrame,V.Focus return angleBetweenPoints(c.p,t.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
