Back to Adaptive Vision Library website

You are here: Start » Function Reference » Path » Path Features » PathBoundingRectangle_FixedAngle_OrNil

PathBoundingRectangle_FixedAngle_OrNil


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Computes the smallest rectangle with the given orientation angle containing a path; returns NIL when the path is empty.

Syntax

C++
C#
 
void avl::PathBoundingRectangle_FixedAngle_OrNil
(
	const avl::Path& inPath,
	float inAngle,
	atl::Conditional<avl::Rectangle2D>& outBoundingRectangle,
	atl::Conditional<avl::Point2D>& outCenter,
	atl::Conditional<float>& outLongSide,
	atl::Conditional<float>& outShortSide
)

Parameters

Name Type Default Description
inPath const Path& Input path
inAngle float Expected angle of the resulting rectangle
outBoundingRectangle Conditional<Rectangle2D>& Smallest bounding rectangle of the input path
outCenter Conditional<Point2D>& Center of the bounding rectangle
outLongSide Conditional<float>& Length of the bounding rectangle long side
outShortSide Conditional<float>& Length of the bounding rectangle short side