System.VarCmplx.VarComplexToPolar

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure VarComplexToPolar(const AValue: Variant; var ARadius, ATheta: Double; AFixTheta: Boolean);

C++

extern DELPHI_PACKAGE void __fastcall VarComplexToPolar(const System::Variant &AValue, double &ARadius, double &ATheta, bool AFixTheta = true);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.VarCmplx.pas
System.VarCmplx.hpp
System.VarCmplx System.VarCmplx

Description

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

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.

See Also