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



CalcX


Unit:SDL_sline
Class:TSLine
Declaration:function CalcX (y: double): double;

The method CalcX calculates the x-value for a given y-value of the current line. The parameter y specifies the y-value.

Hint: The x-value cannot be calculated if the property ParA is zero (i.e. the line is parallel to the x axis). In this case an exception is raised ("cannot calculate x") if SubstituteInf is FALSE. If SubstituteInf is TRUE a very large value (around 10100) is returned and no exception is raised.



Last Update: 2023-Dec-13