RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarCmplx.VarComplexToPolar Function

Computes the polar coordinates that correspond to a custom Variant that represents a complex number.

Pascal
procedure VarComplexToPolar(const AValue: Variant; var ARadius: Double; var ATheta: Double; AFixTheta: Boolean = True);
C++
VarComplexToPolar(const Variant AValue, Double ARadius, Double ATheta, Boolean AFixTheta = True);

Call VarComplexToPolar to obtain the polar coordinates for a complex number. 

AValue is a Variant whose value represents the complex number. 

ARadius returns the radius of the corresponding polar coordinates. 

ATheta returns the angle (Theta) of the corresponding polar coordinates. 

AFixTheta indicates whether VarComplexToPolar should normalize the angle (ATheta). When AFixTheta is true, VarComplexToPolar always returns an angle between – pi and pi. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!