Back to FabImage Library website
You are here: Start » Function Reference » Geometry 3D » Geometry 3D Distance Metrics » PointToPointDistance3D

PointToPointDistance3D
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DLite |
Measures the distance between two 3D points.
Syntax
C++
C#
void fil::PointToPointDistance3D ( const fil::Point3D& inPoint1, const fil::Point3D& inPoint2, float inResolution, float& outDistance, ftl::Optional<fil::Segment3D&> outConnectingSegment = ftl::NIL )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inPoint1 | const Point3D& | |||
![]() |
inPoint2 | const Point3D& | |||
![]() |
inResolution | float | 0.0 - ![]() |
1.0f | Number of real-world units per one pixel |
![]() |
outDistance | float& | |||
![]() |
outConnectingSegment | Optional<Segment3D&> | 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.