calculate distribution of angle, not tested