TOpenCLMtxVec ArcTan2(TOpenCLMtxVec Y, TOpenCLMtxVec X)
Inverse tangens of Y/X.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Y | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | X | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
Result: stored in self (calling object), returns self for chaining
Calculates the inverse tangens of Y/X, and returns an angle in the correct quadrant. The results are stored in calling object elements. Size and Dew.Math.clVector.Complex properties of calling object are adjusted automatically to match those of X and Y objects. An exception is raised if X and Y size and Dew.Math.clVector.Complex properties do not match.
Note that Dew.Math.clVector.ArcTan is calculated as ArcTan2(1, X).
Indexed: TOpenCLMtxVec ArcTan2(TOpenCLMtxVec Y, TOpenCLMtxVec X, Int32 YIndex, Int32 XIndex, Int32 Index, Int32 Len)
Calculate the inverse tangens of Y/X.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Y | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | X | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 3 | YIndex | Int32 | Y start index |
| 4 | XIndex | Int32 | X start index |
| 5 | Index | Int32 | start index |
| 6 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Calculation uses Y elements [YIndex]..[YIndex+Len-1], X elements [XIndex]..[XIndex+Len-1] and stores the results in calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun.