Circle collider (pseudocode)