Click or drag to resize

MapRectangle Operators

The MapRectangle type exposes the following members.

Operators
  NameDescription
Public operatorStatic memberAddition
Translates the rectangle parameter rect horizontally and vertically, if it is not empty. All its boundaries are changed.
Public operatorStatic memberBitwiseAnd
Calculates the result of the intersection of rect1 and rect2. If one of them is empty, the result is empty as well.
Public operatorStatic memberBitwiseOr(MapRectangle, MapRectangle)
Unifies both rectangles rect1 and rect2.
Public operatorStatic memberBitwiseOr(MapRectangle, Point)
Unifies the rectangle rect and point. If point has Double.IsNaN coordinates, the resulting rectangle has the same values as rect. If rect is empty, the boundaries of the resulting rectangle are adapted to the point's coordinates (width and height will be 0).
Public operatorStatic memberEquality
Compares two rectangle instances for exact equality.
Public operatorStatic memberInequality
Compares two rectangle instances for exact inequality.
Public operatorStatic memberMultiply
Inflates the object horizontally and vertically by specifying two different factors for each dimension. The width and height of the rectangle is multiplied by these factors.
Top
See Also