Back to Aurora Vision Library website

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

BoxToBoxDistance


Header: AVL.h
Namespace: avl
Module: FoundationLite

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,
	float inResolution,
	float& outDistance,
	atl::Optional<avl::Segment2D&> outConnectingSegment = atl::NIL
)

Parameters

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

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outConnectingSegment.

Read more about Optional Outputs.