You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clValue Structure > clValue Methods > clValue.PolarToCart Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clValue.PolarToCart Method

Converts the polar magnitude/phase pair to cartesian pair.

Syntax
C#
Visual Basic
public TOpenCLValue PolarToCart(TOpenCLValue AmpltVec, TOpenCLValue PhaseVec);

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 Complex properties of the calling object are set implicitly to match AmpltVec and PhaseVec objects.

var a,b,c: clValue; begin a.Copy(2); // a = [2] //magnitude b.Copy(3); // b = [1] //phase c.PolarToCart(a,b); // result stored in c = projections to Re and Im axis end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!