Back to Adaptive Vision Library website

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

PathBoundingRectangle_FixedAngle


Computes the smallest rectangle with the given orientation angle containing a path.

Syntax

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

Parameters

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

Errors

Error type Description
DomainError Empty path on input in PathBoundingRectangle_FixedAngle.