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



CalcY


Unit:SDL_sline
Class:TSLine
Declaration:function CalcY (x: double): double;

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

Hint: The y value cannot be calculated if the property ParB is zero (i.e. the line is parallel to the y axis). In this case an exception is raised ("cannot calculate y") 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