Added angle handling to SetCoord, so we can use it for hue rotate. Also, other unrelated clean up.