PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the arc tangent 2 of the values passed in parameter.
Versions 22 and later
PHP This function is now available for the PHP sites.
New in version 22
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
Versions 25 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 25
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Example
ArcTan2(1, 1) // Returns 45
ArcTan2(1, -1) // Returns 135
ArcTan2(-1, 1) // Returns -45
ArcTan2(-1, -1) // Returns -135
Syntax
<Result> = ArcTan2(<Y> , <X>)
<Result>: Real
  • Angle (in degrees) between:
    • the positive part of the X axis of a plane,
    • and the point of this plane at (X,Y) coordinates.
      This angle is positive for the angles in anti-clockwise direction, also called trigonometric direction (top half of the plane, Y > 0) and negative in the other one (bottom half of the plane, Y < 0).
      This angle is included in the [-180, 180] interval.
  • 0 if the <X> and <Y> parameters are set to 0.
<Y>: Real
Y value.
<X>: Real
X value.
Business / UI classification : Neutral code
Component : wd250mat.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment