Back to FabImage Library website

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

SegmentToSegmentDistance3D


Header: FIL.h
Namespace: fil
Module: Vision3DLite

Measures the distance between two segments in 3D.

Syntax

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

Parameters

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

Optional Outputs

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

Read more about Optional Outputs.