I am an idiot: cos(i) can be negative.