In this case theta is completely unsafe to use, so a different threshold based on x and z has to be used to avoid division by zero. Ref D9551
In this case theta is completely unsafe to use, so a different threshold based on x and z has to be used to avoid division by zero. Ref D9551