You are here: Start » AVL.NET » Invoke.RegionToRegionDistance
Computes minimal distance between one of the points of the first region with one of the points of the second region.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void RegionToRegionDistance ( Avl.Region inRegion1, Avl.Region inRegion2, float inResolution, out float outDistance, Optional<Avl.Segment2D> outConnectingSegment )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inRegion1 | Avl.Region | First input region. | ||
![]()  | inRegion2 | Avl.Region | Second input region. | ||
![]()  | inResolution | float | <0.0f, INF> | 1.0f | Number of real-world units per one pixel. Default value: 1.0f. | 
![]()  | outDistance | float | |||
![]()  | outConnectingSegment | Atl.Optional<Avl.Segment2D> | 


