Extent.Contains
Contents
[
Hide
]Contains(double, double)
Determines whether this extent contains a coordinate defined by the arguments.
public bool Contains(double x, double y)
Parameter | Type | Description |
---|---|---|
x | Double | X of the coordinate. |
y | Double | Y of the coordinate. |
Return Value
Value, indicating whether coordinate is inside bounding box.
Remarks
Coordinates located on the bounds of this Extent
are considered to be contained by this Extent
.
See Also
- class Extent
- namespace Aspose.Gis
- assembly Aspose.GIS
Contains(Extent)
Determines whether this extent contains the argument.
public bool Contains(Extent extent)
Parameter | Type | Description |
---|---|---|
extent | Extent | Another extent. |
Return Value
Value, indicating whether this extent contains the argument.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Argument is null . |
ArgumentException | SpatialReferenceSystem of this extent and the argument are both not null and not equal to each other. |
Remarks
Coordinates located on the bounds of this Extent
are considered to be contained by this Extent
. For this reason, equal extents are considered to contain each other.
See Also
- class Extent
- namespace Aspose.Gis
- assembly Aspose.GIS
Contains(IGeometry)
Determines whether this extent contains the argument.
public bool Contains(IGeometry geometry)
Parameter | Type | Description |
---|---|---|
geometry | IGeometry | A geometry to test for containment. |
Return Value
Value, indicating whether this extent contains the argument.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Argument is null . |
ArgumentException | SpatialReferenceSystem of this extent and the argument are both not null and not equal to each other. |
Remarks
Coordinates located on the bounds of this Extent
are considered to be contained by this Extent
.
See Also
- interface IGeometry
- class Extent
- namespace Aspose.Gis
- assembly Aspose.GIS