Theory and simulation of angular hysteresis on planar surfaces.