1

It looks like there are two parameters inside the atan function, but I'm not sure how to convert this to C#?

The IDL reference says "If two parameters are supplied, the angle whose tangent is equal to Y/X is returned. "

   atan(out[2,*],sqrt(out[0,*]^2+out[1,*]^2))
   atan(out[1,*],out[0,*])
erotavlas
  • 4,274
  • 4
  • 45
  • 104

1 Answers1

3

this should do it no ?

http://msdn.microsoft.com/en-us/library/system.math.atan2.aspx

using System;
radians = Math.Atan2(y, x);
v.oddou
  • 6,476
  • 3
  • 32
  • 63