This actor reads two double tokens (magnitude and angle) and outputs
a single complex token. The output is a complex token representation of
the coordinates given at the inputs in polar form. The complex token
has two parts: the first part correspond to the real part, which is
magnitude * cos(angle, and the second part is the imaginary part, which is
magnitude * sin(angle). Note that the angle input is
assumed to be in radians. If either input is NaN or infinity,
then the output is NaN or infinity.
Michael Leung, Edward A. Lee, Paul Whitaker
$Id: PolarToComplex.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 port for the output, which has type ComplexToken.