
CartesianToComplex |
ptolemy.actor.lib.conversions.CartesianToComplex |
Convert a Cartesian pair (represented as two double tokens) to a single
complex token. At each firing of the actor, it will consume exactly one
token from each of the two input ports and produce a complex token on the
output port. The x input becomes the real output and the y input becomes the
imaginary output. If either input port is empty, nothing is produced.
Author(s): Michael Leung, Jie Liu, Edward A. Lee, Paul Whitaker
Version:$Id: CartesianToComplex.java,v 1.28 2005/10/28 20:15:27 cxh Exp $
Pt.Proposed Rating:Green (pwhitake)
Pt.Accepted Rating:Green (pwhitake)
x
The input port for the x coordinate of the Cartesian pair, which
has type DoubleToken.
y
The input port for the y coordinate of the Cartesian pair, which
has type DoubleToken.
output
The port for the output, which has type ComplexToken.