You are here: Start » AVL.NET » Function Reference » Region » Region Features » AVL.RegionBoundingParallelogram

AVL.RegionBoundingParallelogram

Computes the smallest parallelogram containing a region.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RegionBoundingParallelogram
(
	AvlNet.Region inRegion,
	AvlNet.BoundingRectangleFeature inBoundingParallelogramFeature,
	AvlNet.Path outBoundingParallelogram,
	NullableValue<AvlNet.Point2D> outCenter,
	NullableValue<float> outLongSide,
	NullableValue<float> outShortSide,
	NullableValue<float> outAngle
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
inBoundingParallelogramFeatureAvlNet.BoundingRectangleFeatureMinimalAreaDetermines what kind of bounding parallelogram will be computed. Default value: MinimalArea.
outBoundingParallelogramAvlNet.PathSmallest bounding parallelogram of the input points.
outCenterAvlNet.NullableValue<AvlNet.Point2D>Center of the bounding parallelogram. Can be null to skip this parameter calculation.
outLongSideAvlNet.NullableValue<float>Length of the bounding parallelogram long side. Can be null to skip this parameter calculation.
outShortSideAvlNet.NullableValue<float>Length of the bounding parallelogram short side. Can be null to skip this parameter calculation.
outAngleAvlNet.NullableValue<float>Angle of the bounding parallelogram. Can be null to skip this parameter calculation.

Errors

List of possible exceptions:

Error type Description
DomainError Empty region on input in RegionBoundingParallelogram.

Function Overrides

See also