The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



R2M


Unit: SDL_rchart
Class: TSmithChart
Declaration: procedure R2M (ReflReal,ReflImag: double; var xout,yout: longint);

The method R2M allows the transformation of Smith chart coordinates (real and imaginary part of the complex reflection coefficient) into integer screen (pixel) coordinates. The parameters ReflReal and ReflImag specify the coordinates of the chart. The variable parameters xout and yout contain the pixel coordinates of the point [ReflReal, ReflImag]. Note, that the returned coordinates are pixel coordinates of the chart window (not the data area) - therefore the properties MarginLeft and MarginTop should be taken into account when using R2M.

Hint: Normally, the user will not utilize this method at all. R2M has been declared public in order to give direct access to the chart area for special purposes.


Example: This method is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): schart



Last Update: 2023-Dec-13