You are here: Start » AVL.NET » AVL.PathBoundingRectangle(AvlNet.Path, float?, AvlNet.BoundingRectangleFeature, AvlNet.Rectangle2D, AvlNet.Point2D, float, float)

AVL.PathBoundingRectangle(AvlNet.Path, float?, AvlNet.BoundingRectangleFeature, AvlNet.Rectangle2D, AvlNet.Point2D, float, float)

Computes the smallest rectangle (can be rotated) containing a path.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void PathBoundingRectangle(
	AvlNet.Path inPath,
	float? inRectangleOrientation,
	AvlNet.BoundingRectangleFeature inBoundingRectangleFeature,
	out AvlNet.Rectangle2D outBoundingRectangle,
	out AvlNet.Point2D outCenter,
	out float outLongSide,
	out float outShortSide
)

Parameters

inPath
Type: AvlNet.Path
Input array of points
inRectangleOrientation
Type: System.Nullable<System.Single>
Expected orientation of the resulting rectangle, or null.
inBoundingRectangleFeature
Type: AvlNet.BoundingRectangleFeature
Determines what kind of bounding rectangle will be computed
outBoundingRectangle
Type: AvlNet.Rectangle2D
The smallest bounding rectangle of the input path
outCenter
Type: AvlNet.Point2D
outLongSide
Type: System.Single
outShortSide
Type: System.Single

Errors

Error type Description
DomainError Empty path on input in PathBoundingRectangle.

See also