distance_lr — Calculate the distance between a line and a region.
The operator distance_lr calculates the orthogonal distance between a line and one region. As input the coordinates of two points on a line (Row1,Column1, Row2,Column2) and one region are expected. The parameters DistanceMin and DistanceMax return the result of the calculation.
Due to efficiency of distance_lr holes are ignored.
Row coordinate of the first point of the line.
Column coordinate of the first point of the line.
Row coordinate of the second point of the line.
Column coordinate of the second point of the line.
Minimum distance between the line and the region
Maximum distance between the line and the region
gen_circle (Circle, 200, 200, 100.5) Column1 := 300 Column2 := 400 for Row := 50 to 350 by 50 gen_contour_polygon_xld (Line, [Row,Row], [Column1,Column2]) distance_lr (Circle, Row, Column1, Row, Column2, DistanceMin, DistanceMax) endfor
distance_lr returns 2 (H_MSG_TRUE).
distance_lc, distance_pr, distance_sr, diameter_region
hamming_distance, select_region_point, test_region_point, smallest_rectangle2