BoundingRectangle Constructor (Double[]) |
Initializes a new instance from the first four consecutive elements in the provided array.
Namespace:
AGI.Foundation.Coordinates
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntaxpublic BoundingRectangle(
double[] elements
)
Public Sub New (
elements As Double()
)
public:
BoundingRectangle(
array<double>^ elements
)
new :
elements : float[] -> BoundingRectangle
Parameters
- elements
- Type:System.Double[]
The array of coordinate values.
ExceptionsException | Condition |
---|
ArgumentNullException |
The array of elements cannot be null.
|
ArgumentOutOfRangeException |
An object of this type must be constructed from an array with at least four elements.
|
ArgumentException |
Thrown when the right parameter is less than the left parameter or when the top parameter is less than the bottom parameter.
|
See Also