void CartToPolar(TOpenCLValue AmpltVec, TOpenCLValue PhaseVec)
Converts value from cartesian to polar coordinate form.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AmpltVec | TOpenCLValue | source TOpenCLValue |
| 2 | PhaseVec | TOpenCLValue | source TOpenCLValue |
Result: stored in self (calling object)
Remarks:
Converts calling object value from cartesian to polar coordinate form, storing the magnitude (radius) component in the AmpltVec and the phase (angle) component in the PhaseVec. If you want to use this method then the calling objects Dew.Math.clValue.Complex property must be true. If this is not the case, an exception is raised. FloatPrecision and Dew.Math.clValue.Complex properties of AmpltVec and PhaseVec are set automatically.
See Also: clValue.PolarToCart