Back to FabImage Library website

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

BoxToBoxDistance


Header: FIL.h
Namespace: fil
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 fil::BoxToBoxDistance
(
	const fil::Box& inBox1,
	const fil::Box& inBox2,
	float inResolution,
	float& outDistance,
	ftl::Optional<fil::Segment2D&> outConnectingSegment = ftl::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 ftl::NIL to these parameters: outConnectingSegment.

Read more about Optional Outputs.