clValue::PolarToCart Method

TOpenCLValue *PolarToCart(TOpenCLValue *AmpltVec, TOpenCLValue *PhaseVec) const;

Converts the polar magnitude/phase pair to cartesian pair.

#NameTypeDescription
1AmpltVecTOpenCLValue *
2PhaseVecTOpenCLValue *
Remarks:

Convert AmpltVec and PhaseVec elements (combined) from polar to cartesian form. The result is stored as a complex number (x=Re, y=Im) in the calling object. FloatPrecision and clValue::Complex properties of the calling object are set implicitly to match AmpltVec and PhaseVec objects.

See Also: clValue::CartToPolar
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler