I.4.9.3 Rotation of Complex Result
The method “rotateBy” is used to modify the values of a Complex Result by adding an angle specified
in degrees to the corresponding phases. However, the method can be used indifferently with Complex
Results in rectangular or in polar formats. The method may have one or two arguments:
- If the method has only one argument, it is the angle
that is added to the phase. The modified argument is the Result object on which the
method is called.
- If the method has two arguments, the first one is a Result object, and the second one is
the rotation angle in degrees. Then the Result object on which the method is applied is
initialized to the rotated argument Result object.
Note that the rotation is done by multiplying the Result by a Complex value obtained as follows:
|
Angle is
always given in .