Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread On ArcTan2
Fri, Jun 1 2018 8:23 AMPermanent Link

Michael Dreher

A minor thing about the help:

  // function ArcTan2(X, Y: Double): Double
  //
  // ...returns a value between -Pi and Pi radians that specifies
  // the counter-clockwise angle between the positive X axis and the
  // point represented by the X and Y input parameters.
  //
  // Examples
  // X := ArcTan2(100,3000);  // X is 0.22882093498523032

I get the value X = 0.033320995878247196 for the example above,
and it seems the x, y parameters are flipped, because

 X := ArcTan2(0,1);  // X=0   (x axis)
 X := ArcTan2(1,0);  // X=pi/2   (y axis)

Michael Dreher
Mon, Jun 4 2018 3:16 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<<I get the value X = 0.033320995878247196 for the example above,and it seems the x, y parameters are flipped,
because >>

Yeah, it's a bug in EWB's ArcTan call - the X and Y are flipped.

I'll have a fix out in build 15.

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Jun 4 2018 3:22 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< Yeah, it's a bug in EWB's ArcTan call - the X and Y are flipped. >>

Scratch that - it's just a documentation issue, but the docs will be updated for build 15. Smile

Tim Young
Elevate Software
www.elevatesoft.com
Image