Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Distance Metrics » PointToRectangleDistance
PointToRectangleDistance
Header: | AVL.h |
---|---|
Namespace: | avl |
Measures the distance between point and rectangle.
Syntax
void avl::PointToRectangleDistance ( const avl::Point2D& inPoint, const avl::Rectangle2D& inRectangle, const float inResolution, const bool inIsFilled, float& outDistance, atl::Conditional<avl::Segment2D>& outConnectingSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoint | const Point2D& | ||||
inRectangle | const Rectangle2D& | ||||
inResolution | const float | 0.0 - | 1.0f | Number of real-world units per one pixel | |
inIsFilled | const bool | True | Whether the rectangle is filled inside or not | ||
outDistance | float& | ||||
outConnectingSegment | Conditional<Segment2D>& |