You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Features » FIL.PointsBoundingParallelogram

FIL.PointsBoundingParallelogram

Computes the smallest parallelogram containing an array of points.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void PointsBoundingParallelogram
(
	IList<FilNet.Point2D> inPoints,
	FilNet.BoundingRectangleFeature inBoundingParallelogramFeature,
	FilNet.Path outBoundingParallelogram,
	NullableValue<FilNet.Point2D> outCenter,
	NullableValue<float> outLongSide,
	NullableValue<float> outShortSide,
	NullableValue<float> outAngle
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<FilNet.Point2D>Input array of points.
inBoundingParallelogramFeatureFilNet.BoundingRectangleFeatureMinimalAreaDetermines what kind of bounding parallelogram will be computed. Default value: MinimalArea.
outBoundingParallelogramFilNet.PathSmallest bounding parallelogram of the input points.
outCenterFilNet.NullableValue<FilNet.Point2D>Center of the bounding parallelogram. Can be null to skip this parameter calculation.
outLongSideFilNet.NullableValue<float>Length of the bounding parallelogram long side. Can be null to skip this parameter calculation.
outShortSideFilNet.NullableValue<float>Length of the bounding parallelogram short side. Can be null to skip this parameter calculation.
outAngleFilNet.NullableValue<float>Angle of the bounding parallelogram. Can be null to skip this parameter calculation.

Errors

List of possible exceptions:

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

Function Overrides

See also