You are here: Start » AVL.NET » Invoke.PathBoundingRectangle

Invoke.PathBoundingRectangle

Computes the smallest rectangle containing a path.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void PathBoundingRectangle
(
	Avl.Path inPath,
	Avl.BoundingRectangleFeature inBoundingRectangleFeature,
	float inReferenceAngle,
	Avl.RectangleOrientation inRectangleOrientation,
	out Avl.Rectangle2D outBoundingRectangle,
	Optional<Avl.Point2D> outCenter,
	Optional<float> outLongSide,
	Optional<float> outShortSide
)

Parameters

Name Type Range Default Description
inPathAvl.PathInput path.
inBoundingRectangleFeatureAvl.BoundingRectangleFeatureMinimalAreaDetermines what kind of bounding rectangle will be computed. Default value: MinimalArea.
inReferenceAnglefloat0.0fThe middle angle of the valid range of the output rectangle's angle. Default value: 0.0f.
inRectangleOrientationAvl.RectangleOrientationHorizontalOrientation of the output rectangle. Default value: Horizontal.
outBoundingRectangleAvl.Rectangle2DThe smallest bounding rectangle of the input path.
outCenterAtl.Optional<Avl.Point2D>Center of the bounding rectangle.
outLongSideAtl.Optional<float>Length of the bounding rectangle long side.
outShortSideAtl.Optional<float>Length of the bounding rectangle short side.

See also