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

Invoke.PathBoundingRectangle_OrNil

Computes the smallest rectangle containing a path; returns NIL when the path is empty.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void PathBoundingRectangle_OrNil
(
	Avl.Path inPath,
	Avl.BoundingRectangleFeature inBoundingRectangleFeature,
	float inReferenceAngle,
	Avl.RectangleOrientation inRectangleOrientation,
	Conditional<Avl.Rectangle2D> outBoundingRectangle,
	Conditional<Avl.Point2D> outCenter,
	Conditional<float> outLongSide,
	Conditional<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.
outBoundingRectangleAtl.Conditional<Avl.Rectangle2D>Smallest bounding rectangle of the input path.
outCenterAtl.Conditional<Avl.Point2D>Center of the bounding rectangle.
outLongSideAtl.Conditional<float>Length of the bounding rectangle long side.
outShortSideAtl.Conditional<float>Length of the bounding rectangle short side.

See also