Theta function

Get the offset angle