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

Converts value from cartesian to polar coordinate form.

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

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 Complex property must be true. If this is not the case, an exception is raised. FloatPrecision and Complex properties of AmpltVec and PhaseVec are set automatically.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!