TOpenCLValue.ArcTan2 Method

function ArcTan2(Y: TOpenCLValue; X: TOpenCLValue): TOpenCLValue;

Inverse tangens of Y/X.

#NameTypeDescription
1YTOpenCLValuesource TOpenCLValue
2XTOpenCLValuesource 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 elements. FloatPrecision and TOpenCLBase.Complex properties of calling object are adjusted automatically to match those of X and Y objects. An exception is raised if X and Y FloatPrecision and TOpenCLBase.Complex properties do not match.

Note that TOpenCLValue.ArcTan is calculated as ArcTan2(1, X).

See Also: TOpenCLValue.ArcTan