Tests if a 2d convex hull fits into a bounding rectangle.
Namespace:
ceometric.ComputationalGeometryAssembly: ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.2.0.0 (2.2.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
| Exception | Condition |
|---|---|
| System..::.ArithmeticException | Floating point arithmetic error. |