Public Function PolarToRectangular( _
ByVal vX As Variant _
) As Variant ? PolarToRectangular("2|0")
2
? PolarToRectangular("2|.5")
1.75516512378075|0.958851077208406
? PolarToRectangular("2|1")
1.08060461173628|1.68294196961579
? PolarToRectangular("2|1.5")
0.141474403335406|1.99498997320811
? PolarToRectangular("2|2")
-0.832293673094285|1.81859485365136
? PolarToRectangular("2|2.5")
-1.60228723109387|1.19694428820791
? PolarToRectangular("2|3")
-1.97998499320089|0.282240016119734See also: RectangularToPolar FunctionvX: Complex number representing polar coordinates. The real part of the complex number represents the length of the vector, and the imaginary part represents the angle (measured in radians). Function returns a complex number where the real part represents the X-coordinate and the imaginary part represents the Y-coordinate in rectangular coordinates. Function returns Null if vX is Null or cannot be fixed up to a real or complex number (as defined by the ComplexStringToReals function). Complex numbers are represented within strings as "R|I" where R is the real part and I is the imaginary part.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.