New to Telerik UI for WinFormsStart a free 30-day trial

Represents a rectangle in Geographic coordinate system.

Definition

Namespace:Telerik.WinControls.UI.Map

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public struct RectangleG : IEquatable<RectangleG>

Implements: IEquatable<RectangleG>

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the RectangleG struct.

C#
public RectangleG(double north, double west, double south, double east)
Parameters:northdouble

The north.

westdouble

The west.

southdouble

The south.

eastdouble

The east.

Fields

C#
public static readonly RectangleG Empty

Properties

Gets or sets the east.

C#
public double East { get; set; }
Property Value:

The east.

Gets or sets the north.

C#
public double North { get; set; }
Property Value:

The north.

Gets or sets the north-west corner of the rectangle.

C#
public PointG NorthWest { get; set; }
Property Value:

The north-west corner.

Gets or sets the south.

C#
public double South { get; set; }
Property Value:

The south.

Gets or sets the south-east corner of the rectangle.

C#
public PointG SouthEast { get; set; }
Property Value:

The south-east corner.

Gets or sets the west.

C#
public double West { get; set; }
Property Value:

The west.

Methods

Determines whether this rectangle contains the specified point.

C#
public bool Contains(PointG location)
Parameters:locationPointG

The location.

Returns:

bool

true if this rectangle contains the specified point; otherwise, false.

Determines whether the specified object is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this instance.

Returns:

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides: ValueType.Equals(object)

C#
public bool Equals(RectangleG other)
Parameters:otherRectangleGReturns:

bool

Implements: IEquatable<RectangleG>.Equals(RectangleG)

Gets the bounding rectangle for the specified collection of points.

C#
public static RectangleG GetBoundingRectangle(IEnumerable<PointG> points)
Parameters:pointsIEnumerable<PointG>

The points.

Returns:

RectangleG

RectangleG.

Returns a hash code for this instance.

C#
public override int GetHashCode()
Returns:

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides: ValueType.GetHashCode()

Gets a value indicating whether this rectangle intersects with the provided one.

C#
public bool IntersectsWith(RectangleG rect)
Parameters:rectRectangleG

The rect.

Returns:

bool

true if this rectangle intersects with the provided one, false otherwise.