Back to Aurora Vision Library Lite website
You are here: Start » Basic » Box » BoxToBoxDistance
BoxToBoxDistance
Header: | AVL.h |
---|---|
Namespace: | avl |
Computes minimal distance between one of the points of the first box with one of the points of the second box.
Syntax
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 | |
---|---|---|---|---|---|
inBox1 | const Box& | ||||
inBox2 | const Box& | ||||
inResolution | float | 0.0 - | 1.0f | ||
outDistance | float& | ||||
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.