Back to Adaptive Vision Library website

You are here: Start » Function Reference » Box » BoxToBoxDistance

BoxToBoxDistance


Computes minimal distance between one of the points of the first box with one of the points of the second box.

Syntax

C++
C#
 
void avl::BoxToBoxDistance
(
	const avl::Box& inBox1,
	const avl::Box& inBox2,
	atl::real inResolution,
	atl::real& outDistance,
	atl::Optional<avl::Segment2D&> outConnectingSegment = atl::NIL
)

Parameters

Name Type Range Default Description
inBox1 const Box&
inBox2 const Box&
inResolution real 0.0 - 1.0f
outDistance real&
outConnectingSegment Optional<Segment2D&> NIL