distance_pp (Operator)

Name

`distance_pp` — Calculate the distance between two points.

Signature

`distance_pp( : : Row1, Column1, Row2, Column2 : Distance)`

Description

The operator `distance_pp` calculates the distance between pairs of points according to the following formula: The result is returned in `Distance`.

Execution Information

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

Parameters

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

Row coordinate of the first point.

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

Column coordinate of the first point.

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

Row coordinate of the second point.

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

Column coordinate of the second point.

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

Distance between the points.

Example (HDevelop)

```dev_open_window (0, 0, 512, 512, 'black', WindowHandle)
draw_point (WindowHandle, Row1, Column1)
gen_cross_contour_xld (Cross, Row1, Column1, 15, 0)
draw_point (WindowHandle, Row2, Column2)
gen_cross_contour_xld (Cross, Row2, Column2, 15, 0)
distance_pp (Row1, Column1, Row2, Column2, Distance)
```

Result

`distance_pp` returns TRUE.

Alternatives

`distance_ps`

`distance_pl`, `distance_pr`