You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clValue Structure > clValue Methods > clValue.ArcTan2 Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clValue.ArcTan2 Method

Inverse tangens of Y/X.

Syntax
C#
Visual Basic
public TOpenCLValue ArcTan2(TOpenCLValue Y, TOpenCLValue X);

 

Calculates the inverse tangens of Y/X, and returns an angle in the correct quadrant. The results are stored in calling object. 

The values of X and Y must be between -2*Math387.PI and 2*Math387.PI. If they are not, consider adjusting the angle by calling the Math387.FixAngle routine. In addition, the value of X can't be 0. The result will fall in the range from -2Math387.PI and +Math387.PI radians. Note that ArcTan is calculated as ArcTan2(1, X).

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!