Struct
RectangleG

Represents a rectangle in Geographic coordinate system.

Definition

Namespace:Telerik.WinControls.UI.Map

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

cs-api-definition
public struct RectangleG : IEquatable<RectangleG>

Implements: IEquatable<RectangleG>

Inherited Members ValueType.ToString()

Constructors

RectangleG(double, double, double, double)

Initializes a new instance of the RectangleG struct.

Declaration

cs-api-definition
public RectangleG(double north, double west, double south, double east)

Parameters

north

double

The north.

west

double

The west.

south

double

The south.

east

double

The east.

Fields

Empty

Declaration

cs-api-definition
public static readonly RectangleG Empty

Field Value

RectangleG

Properties

East

Gets or sets the east.

Declaration

cs-api-definition
public double East { get; set; }

Property Value

double

The east.

North

Gets or sets the north.

Declaration

cs-api-definition
public double North { get; set; }

Property Value

double

The north.

NorthWest

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

Declaration

cs-api-definition
public PointG NorthWest { get; set; }

Property Value

PointG

The north-west corner.

South

Gets or sets the south.

Declaration

cs-api-definition
public double South { get; set; }

Property Value

double

The south.

SouthEast

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

Declaration

cs-api-definition
public PointG SouthEast { get; set; }

Property Value

PointG

The south-east corner.

West

Gets or sets the west.

Declaration

cs-api-definition
public double West { get; set; }

Property Value

double

The west.

Methods

Contains(PointG)

Determines whether this rectangle contains the specified point.

Declaration

cs-api-definition
public bool Contains(PointG location)

Parameters

location

PointG

The location.

Returns

bool

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

Equals(RectangleG)

Declaration

cs-api-definition
public bool Equals(RectangleG other)

Parameters

other

RectangleG

Returns

bool

Implements IEquatable<RectangleG>.Equals(RectangleG)

Equals(object)

Determines whether the specified object is equal to this instance.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetBoundingRectangle(IEnumerable<PointG>)

Gets the bounding rectangle for the specified collection of points.

Declaration

cs-api-definition
public static RectangleG GetBoundingRectangle(IEnumerable<PointG> points)

Parameters

points

IEnumerable<PointG>

The points.

Returns

RectangleG

RectangleG.

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
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()

IntersectsWith(RectangleG)

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

Declaration

cs-api-definition
public bool IntersectsWith(RectangleG rect)

Parameters

rect

RectangleG

The rect.

Returns

bool

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