Tests if a 2d convex hull fits into a bounding rectangle.

Namespace:  ceometric.ComputationalGeometry
Assembly:  ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.4.0.0 (2.4.0.0)

Syntax

C#
public BoundingRectangle FitsInto(
	BoundingRectangle container
)
Visual Basic (Declaration)
Public Function FitsInto ( _
	container As BoundingRectangle _
) As BoundingRectangle
Visual C++
public:
BoundingRectangle^ FitsInto(
	BoundingRectangle^ container
)

Parameters

container
Type: ceometric.ComputationalGeometry..::.BoundingRectangle
A bounding rectangle.

Return Value

Returns a bounding rectangle that fits into the container or null if such bounding rectangle does not exist.

Remarks

If the convex hull fits into the container, then there are usually more than one possible solutions. However, this method returns the first solution that is found.

Exceptions

ExceptionCondition
System..::.ArithmeticExceptionFloating point arithmetic error.

See Also