Improved directional-distance filter