
ComplexToPolar |
ptolemy.actor.lib.conversions.ComplexToPolar |
Convert a complex token to polar coordinates, which are represented by two
double tokens (magnitude and angle). The output angle is in radians.
The implementation uses java.lang.Math.atan2(double, double).
Author(s): Michael Leung, Edward A. Lee, and Paul Whitaker
Version:$Id: ComplexToPolar.java,v 1.31 2005/10/28 20:15:33 cxh Exp $
Pt.Proposed Rating:Green (pwhitake)
Pt.Accepted Rating:Green (cxh)
input
The port for the input, which has type ComplexToken.
magnitude
The output port for the magnitude component, which has type
DoubleToken.
angle
The output port for the angle component, which has type DoubleToken.