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.
Michael Leung, Edward A. Lee, Paul Whitaker
$Id: PolarToCartesian.java 70398 2014-10-22 23:44:32Z cxh $
Ptolemy II 1.0
Green (pwhitake)
Green (pwhitake)
The input port for the magnitude component, which has type
DoubleToken.
The input port for the angle component (in radians), which has type
DoubleToken.
The output port for the x coordinate, which has type DoubleToken.
The output port for the y coordinate, which has type DoubleToken.