distance_sc (Operator)

Name

`distance_sc` — Calculate the distance between a line segment and one contour.

Signature

`distance_sc(Contour : : Row1, Column1, Row2, Column2 : DistanceMin, DistanceMax)`

Description

The operator `distance_sc` calculates the distance between a line segment and the line segments of one contour. `Row1`, `Column1`, `Row2`, `Column2` are the start and end coordinates of a line segment, `Contour` represents the input contour. The parameters `DistanceMin` and `DistanceMax` contain the resulting distances.

Execution Information

• Multithreading type: reentrant (runs in parallel with non-exclusive operators).
• Processed without parallelization.

Parameters

`Contour` (input_object)  xld_cont `→` object

Input contour.

`Row1` (input_control)  point.y(-array) `→` (real / integer)

Row coordinate of the first point of the line segment.

`Column1` (input_control)  point.x(-array) `→` (real / integer)

Column coordinate of the first point of the line segment.

`Row2` (input_control)  point.y(-array) `→` (real / integer)

Row coordinate of the second point of the line segment.

`Column2` (input_control)  point.x(-array) `→` (real / integer)

Column coordinate of the second point of the line segment.

`DistanceMin` (output_control)  real(-array) `→` (real)

Minimum distance between the line segment and the contour.

`DistanceMax` (output_control)  real(-array) `→` (real)

Maximum distance between the line segment and the contour.

Result

`distance_sr` returns 2 (H_MSG_TRUE).

Alternatives

`distance_lc`, `distance_pc`, `distance_cc`, `distance_cc_min`

`distance_sr`, `distance_lr`, `distance_pr`, `select_xld_point`, `test_xld_point`