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....


Unit: SDL_rchart
Class: TSmithChart
Declaration: procedure M2R (xin,yin: longint; var ReflReal,ReflImag: double);

The routine M2R allows the transformation of integer screen (pixel) coordinates into chart coordinates (real and imaginary part of the reflection coefficient). The parameters xin and yin specify the pixel coordinates of the chart window (not the data area) - therefore the properties MarginLeft and MarginTop should be taken into account when using M2R. The variable parameters ReflReal and ReflImag return the coordinates of the point [xin, yin].

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

Last Update: 2012-Okt-20