PolarToCartesian
ptolemy.actor.lib.conversions.PolarToCartesian

This actor reads two double tokens (magnitude and angle) and outputs two new double tokens (x and y). The outputs are a Cartesian representation of the pair given at the inputs in polar form, where x = magnitude * cos(angle) and y = magnitude * sin(angle). Note that the angle input is assumed to be in radians. If either input is NaN or infinity, then the outputs are NaN or infinity.

Author(s): Michael Leung, Edward A. Lee, Paul Whitaker
Version:$Id: PolarToCartesian.java,v 1.27 2005/10/28 20:15:45 cxh Exp $
Pt.Proposed Rating:Green (pwhitake)
Pt.Accepted Rating:Green (pwhitake)


magnitude
The input port for the magnitude component, which has type DoubleToken.

angle
The input port for the angle component (in radians), which has type DoubleToken.

x
The output port for the x coordinate, which has type DoubleToken.

y
The output port for the y coordinate, which has type DoubleToken.