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



CalcNeedleAngle


Unit:SDL_meter
Class:TMeter
Declaration:function CalcNeedleAngle (value: double): double;

The method CalcNeedleAngle calculates the angle of the needle for a given value of the meter. The returned angle is in degrees; the vertical direction (downward) equals 0 degrees. The angle increases clockwise (see figure below). If value is less than MeterMinValue or greater than MeterMaxValue it is automatically limited to these boundaries.



Last Update: 2023-Dec-14