Computes the rectangle enclosing a 2d convex hull with minimum area.
Namespace:
ceometric.ComputationalGeometryAssembly: ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.4.0.0 (2.4.0.0)
Syntax
C# |
---|
public BoundingRectangle MinimumAreaEnclosingRectangle() |
Visual Basic (Declaration) |
---|
Public Function MinimumAreaEnclosingRectangle As BoundingRectangle |
Visual C++ |
---|
public: BoundingRectangle^ MinimumAreaEnclosingRectangle() |
Return Value
Returns a bounding rectangle enclosing a 2d convex hull with minimum area.
Remarks
The bounding rectangle is computed in O(n) time with n being the number of vertices of
the 2d convex hull.
Exceptions
Exception | Condition |
---|---|
System..::.ArithmeticException | Floating point arithmetic error. |