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



Intersection


Unit:SDL_sline
Class:TSLine
Declaration:function InterSection (OtherLine: TSLine; var x,y: double): boolean;

The method Intersection calculates the intersection point of the line with another one. The parameter OtherLine contains the second line, the variable parameters x and y return the coordinates of the intersection point. The function returns TRUE if the intersection point exists. If no intersection point exists (i.e. the two lines are parallels) the function returns FALSE and the parameters x and y are invalid.


Last Update: 2012-Oct-20