Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 3D Distance Metrics » SegmentToSegmentDistance3D

SegmentToSegmentDistance3D


Measures the distance between two segments in 3D.

Syntax

C++
C#
 
void avl::SegmentToSegmentDistance3D
(
	const avl::Segment3D& inSegment1,
	const avl::Segment3D& inSegment2,
	float inResolution,
	float& outDistance,
	atl::Optional<avl::Segment3D&> outConnectingSegment3D = atl::NIL
)

Parameters

Name Type Range Default Description
inSegment1 const Segment3D&
inSegment2 const Segment3D&
inResolution float 0.0 - 1.0f Number of real-world units per one pixel
outDistance float&
outConnectingSegment3D Optional<Segment3D&> NIL