If (angle mod 360) > 180 then h * sin (angle) will be negative.
If (angle mod 360) > 90 and < 270 then h * cos (angle) will be negative.
(Assuming h is positive)