Re: why is TMath::Atan2(1,1) = 135 degrees?
Rene Brun (Rene.Brun@cern.ch)
Thu, 26 Nov 1998 18:38:32 +0100
Richard T. Jones wrote:
>
> ROOT users,
>
> Can someone explain why TMath::Atan2() is something other than the
> standard atan2() in degrees? As it is, the function returns theta+90.
> If this is intended, could it be named something other than Atan2?
>
> thanks,
> Richard Jones
Hi Rick,
TMath has two functions:
TMath::ATan2(double, double) identical to atan2
TMath::Atan2(long,long) returning results in degrees.
You should call the first one with T and not t
Rene Brun