<-- Previous || Up || Next -->

Polar To Rectangular Function
Math Trig Complex Class

Public Function PolarToRectangular( _
    ByVal vX As Variant _
    ) As Variant

"Polar Coordinates To Rectangular"
Polar to rectangular conversion.
Convert two-dimensional polar coordinates (expressed in radians) to rectangular coordinates.

    ? PolarToRectangular("2|0")
    ? PolarToRectangular("2|.5")
    ? PolarToRectangular("2|1")
    ? PolarToRectangular("2|1.5")
    ? PolarToRectangular("2|2")
    ? PolarToRectangular("2|2.5")
    ? PolarToRectangular("2|3")
See also:
    RectangularToPolar Function
vX: 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.