Click or drag to resize

Rectangle Structure

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Describes a rectangular area, specified by two corner points. Rectangles may be checked for overlap using the Intersects(Rectangle) method.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.86.0.0
Syntax
public struct Rectangle

The Rectangle type exposes the following members.

Properties
  NameDescription
Public propertylat1
Gets or sets the Latitude of the bottom edge of the Rectangle.
Public propertylat2
Gets or sets the Latitude of the top edge of the Rectangle.
Public propertylon1
Gets or sets the Longitude of the left edge of the Rectangle.
Public propertylon2
Gets or sets the Longitude of the right edge of the Rectangle.
Public propertyp1
Gets Point 1 as LatLon.
Public propertyp2
Gets Point 2 as LatLon.
Top
Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIntersects
Test if this Rectangle intersects with another Rectangle.
Public methodToString
Creates a string representation of this Rectangle.
(Overrides ValueTypeToString.)
Top
Remarks

As with BoundingBox a Rectangle is specified by two sets of coordinates, one representing the top-left corner the other the bottom-right corner.

Rectangles can be created using a BoundingBox's Rectangle method.

See Also