TOpenCLValue ArcTan2(TOpenCLValue Y, TOpenCLValue X)
Inverse tangens of Y/X.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Y | TOpenCLValue | source TOpenCLValue |
| 2 | X | TOpenCLValue | source TOpenCLValue |
Returns: TOpenCLValue
Remarks:
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*Dew.Math.Units.Math387.PI and 2*Dew.Math.Units.Math387.PI. If they are not, consider adjusting the angle by calling the Dew.Math.Units.Math387.FixAngle routine. In addition, the value of X can't be 0. The result will fall in the range from -2Dew.Math.Units.Math387.PI and +Dew.Math.Units.Math387.PI radians. Note that Dew.Math.clValue.ArcTan is calculated as ArcTan2(1, X).
See Also: clValue.ArcTan