VarCmplx.VarComplexToPolar

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From VarCmplx.pas

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


Unit: VarCmplx

Type: procedure

Visibility: public

C++ Information

From VarCmplx.hpp

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


Unit: VarCmplx

Type: function

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

Personal tools
Translations
Newest Version