Class EnvelopeExtensions
Extension method class
Inheritance
System.Object
EnvelopeExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OSGeo.MapGuide.ObjectModels.Common
Assembly: OSGeo.MapGuide.ObjectModels.dll
Syntax
public static class EnvelopeExtensions
Methods
| Improve this Doc View SourceCenter(IEnvelope)
Gets the center of the specified envelope
Declaration
public static IPoint2D Center(this IEnvelope env)
Parameters
Type | Name | Description |
---|---|---|
IEnvelope | env |
Returns
Type | Description |
---|---|
IPoint2D |
Clone(IEnvelope)
Clones this instance
Declaration
public static IEnvelope Clone(this IEnvelope env)
Parameters
Type | Name | Description |
---|---|---|
IEnvelope | env | The envelope. |
Returns
Type | Description |
---|---|
IEnvelope |
Contains(IEnvelope, Double, Double)
Indicates whether the specified coordinates are within this instance
Declaration
public static bool Contains(this IEnvelope env, double x, double y)
Parameters
Type | Name | Description |
---|---|---|
IEnvelope | env | The env. |
System.Double | x | The x. |
System.Double | y | The y. |
Returns
Type | Description |
---|---|
System.Boolean |
|
ExpandToInclude(IEnvelope, IEnvelope)
Expands this envelope to accomodate the given envelope
Declaration
public static void ExpandToInclude(this IEnvelope env, IEnvelope e1)
Parameters
Type | Name | Description |
---|---|---|
IEnvelope | env | |
IEnvelope | e1 |
Intersects(IEnvelope, IEnvelope)
Indicates whether the specified envelope intersects this instance
Declaration
public static bool Intersects(this IEnvelope env, IEnvelope other)
Parameters
Type | Name | Description |
---|---|---|
IEnvelope | env | The env. |
IEnvelope | other | The other. |
Returns
Type | Description |
---|---|
System.Boolean |
IsEmpty(IEnvelope)
Gets whether the given instance is empty
Declaration
public static bool IsEmpty(this IEnvelope env)
Parameters
Type | Name | Description |
---|---|---|
IEnvelope | env |
Returns
Type | Description |
---|---|
System.Boolean |