You are here: Start » AVL.NET » AVL.PointsBoundingParallelogram

AVL.PointsBoundingParallelogram

Computes the smallest parallelogram containing an array of points.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void PointsBoundingParallelogram
(
	AvlNet.Point2D[] inPoints,
	AvlNet.BoundingRectangleFeature inBoundingParallelogramFeature,
	out AvlNet.Path outBoundingParallelogram,
	out AvlNet.Point2D outCenter,
	out float outLongSide,
	out float outShortSide,
	out float outAngle
)

Parameters

Name Type Range Default Description
inPointsAvlNet.Point2D[]Input array of points.
inBoundingParallelogramFeatureAvlNet.BoundingRectangleFeatureMinimalAreaDetermines what kind of bounding parallelogram will be computed. Default value: MinimalArea.
outBoundingParallelogramAvlNet.PathSmallest bounding parallelogram of the input points.
outCenterAvlNet.Point2DCenter of the bounding parallelogram
outLongSidefloatLength of the bounding parallelogram long side
outShortSidefloatLength of the bounding parallelogram short side
outAnglefloatAngle of the bounding parallelogram

Errors

Error type Description
DomainError No points on input in PointsBoundingParallelogram.
DomainError Unknown parallelogram feature in PointsBoundingParallelogram.

See also