EPointCloud::DistanceToSegment

Returns the shortest distance between an E3DPoint of the EPointCloud and a segment represented by 2 E3DPoint.

Namespace: Euresys::Open_eVision::Easy3D

[C++]

float DistanceToSegment(
   const E3DPoint& origin,
   const E3DPoint& end
)

float DistanceToSegment(
   const E3DPoint& origin,
   const E3DPoint& end,
   E3DPoint& closest,
   int& closestIndex
)

Parameters

origin

One endpoint of the segment.

end

The other endpoint of the segment.

closest

Where the closest point will be stored.

closestIndex

Where the index of the closest point will be stored.

EPointCloud.DistanceToSegment

Returns the shortest distance between an E3DPoint of the EPointCloud and a segment represented by 2 E3DPoint.

Namespace: Euresys.Open_eVision.Easy3D

[C#]

float DistanceToSegment(
   Euresys.Open_eVision.Easy3D.E3DPoint origin,
   Euresys.Open_eVision.Easy3D.E3DPoint end
)

float DistanceToSegment(
   Euresys.Open_eVision.Easy3D.E3DPoint origin,
   Euresys.Open_eVision.Easy3D.E3DPoint end,
   out Euresys.Open_eVision.Easy3D.E3DPoint closest,
   out int closestIndex
)

Parameters

origin

One endpoint of the segment.

end

The other endpoint of the segment.

closest

Where the closest point will be stored.

closestIndex

Where the index of the closest point will be stored.