Hi, I'm trying to convert a calculated angle into a bearing, and have used the expression below in visual basic. How do I do the same with no "<>"'s?
If dx<>0 Then
bear1=180-ATan(dy/dx)*rad2degree-90*(dx>0)+90*(dx<0)
Else If dy > 0 Then
bear1=180
Else
bear1 =0
End If
I'm a beginner at this and would appreciate any help.
regards, Peter
If dx<>0 Then
bear1=180-ATan(dy/dx)*rad2degree-90*(dx>0)+90*(dx<0)
Else If dy > 0 Then
bear1=180
Else
bear1 =0
End If
I'm a beginner at this and would appreciate any help.
regards, Peter