Probabilistic Kernel Function for Fast Angle Testing