working distance and angle functions