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



LineFrom2Points


Unit:SDL_sline
Class:TSLine
Declaration:function LineFrom2Points (P1X, P1Y, P2X, P2Y: double): boolean;

The method LineFrom2Points calculates the parameters of the straight line equation (ParA, ParB, ParC) from two given points. The points are specified by the parameters P1X, P1Y, P2X, and P2Y. The function returns TRUE if the equation can be calculated, otherwise a FALSE value is returned.


Last Update: 2012-Oct-20