You are here: Start » AVL.NET » AVL.PointsBoundingRectangle(AvlNet.Point2D[], float?, AvlNet.BoundingRectangleFeature, AvlNet.Rectangle2D, AvlNet.Point2D, float, float)

AVL.PointsBoundingRectangle(AvlNet.Point2D[], float?, AvlNet.BoundingRectangleFeature, AvlNet.Rectangle2D, AvlNet.Point2D, float, float)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void PointsBoundingRectangle(
	AvlNet.Point2D[] inPoints,
	float? inRectangleOrientation,
	AvlNet.BoundingRectangleFeature inBoundingRectangleFeature,
	out AvlNet.Rectangle2D outBoundingRectangle,
	out AvlNet.Point2D outCenter,
	out float outLongSide,
	out float outShortSide
)

Parameters

inPoints
Type: AvlNet.Point2D
inRectangleOrientation
Type: System.Nullable<System.Single>
inBoundingRectangleFeature
Type: AvlNet.BoundingRectangleFeature
outBoundingRectangle
Type: AvlNet.Rectangle2D
outCenter
Type: AvlNet.Point2D
outLongSide
Type: System.Single
outShortSide
Type: System.Single

Examples

The resulting outBoundingRectangle drawn with the input points and with inRectangleOrientation set on Auto

Errors

Error type Description
DomainError No points on input in PointsBoundingRectangle.
DomainError Incorrect BoundingRectangleFeature in PointsBoundingRectangle.

See also