CADability dotNET
The BoundingRect type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| BoundingRect(Rectangle) |
Creates a new BoundingRect from the provided System.Drawing.rectangle
| |
| BoundingRect(array<GeoPoint2D>[]()[][]) |
Creates a new BoundingRect which contains the provided points
| |
| BoundingRect(GeoPoint2D, Double, Double) |
Creates a new BoundingRect with the provided center, half width and half height
| |
| BoundingRect(Double, Double, Double, Double) |
Creates a new BoundingRect with the provided limits.
|
Methods
| Name | Description | |
|---|---|---|
| Disjoint |
Returns true if the two rectangles are disjoint (do not overlap)
| |
| GetCenter |
Returns the center of the rectangle
| |
| GetLowerLeft |
Returns the lower left point of the rectangle
| |
| GetLowerMiddle |
Returns the center of the bottom line of the rectangle
| |
| GetLowerRight |
Returns the lower right point of the rectangle
| |
| GetMiddleLeft |
Returns the center of the left line of the rectangle
| |
| GetMiddleRight |
Returns the center of the right line of the rectangle
| |
| GetPosition |
Returns the position of the provided point with a given precision
| |
| GetUpperLeft |
Returns the upper left point of the rectangle
| |
| GetUpperMiddle |
Returns the center of the upper line of the rectangle
| |
| GetUpperRight |
Returns the upper right point of the rectangle
| |
| Inflate(Double) |
Inflates the rectangle by the provided value which may also be negative
| |
| Inflate(Double, Double) |
Inflates the rectangle with different values in width an height
| |
| Interferes |
Returns true, when this rectangle and the provided rect overlap
| |
| IsEmpty |
Returns true, if this BoundingRect is empty.
| |
| MakeEmpty |
Makes this BoundingRect an empty BoundingRect
| |
| MinMax(BoundingRect) |
Adapts the size of this bounding rectangle to include the provided rectangle.
| |
| MinMax(GeoPoint2D) |
Adapts the size of this bounding rectangle to include the provided point.
| |
| Modify |
Modifies the rectangle by the provided ModOp2D. The resulting rectangle contains the modified
vertices of this rectangle
| |
| Move |
Moves the rectangle by the provided offset
| |
| ToBorder |
Returns a Border that consists of the four lines of this ractangle.
|
Operators
| Name | Description | |
|---|---|---|
| Addition(BoundingRect, BoundingRect) | ||
| Addition(BoundingRect, Double) |
Returns an inflated or deflated rectangle
| |
| ExplicitNarrowingExplicitExplicitExplicit(BoundingRect to Rectangle) |
Typecast to a System.Drawing.Rectangle
| |
| GreaterThan(BoundingRect, BoundingRect) |
Determins whether r2 is contained in r1.
| |
| GreaterThan(GeoPoint2D, BoundingRect) |
Determins whether the provided point is outside of the provided ractangle
| |
| GreaterThanOrEqual(BoundingRect, BoundingRect) |
Determins whether r2 is contained in r1. It may also contact one ore multiple sides of the rectangle.
| |
| GreaterThanOrEqual(GeoPoint2D, BoundingRect) |
Determins whether the provided point is outside of the provided ractangle. It may also reside on one
of the bounding lines.
| |
| LessThan(BoundingRect, BoundingRect) |
Determins whether r1 is contained in r2.
| |
| LessThan(GeoPoint2D, BoundingRect) |
Determins whether the provided point is contained in the provided rectangle
| |
| LessThanOrEqual(BoundingRect, BoundingRect) |
Determins whether r1 is contained in r2. It may also contact one ore multiple sides of the rectangle.
| |
| LessThanOrEqual(GeoPoint2D, BoundingRect) |
Determins whether the provided point is contained in the provided rectangle. It may also reside on one
of the bounding lines.
| |
| Multiply |
Returns a rectangle which is scaled by the provided factor. The center remaines fixed.
|
Fields
| Name | Description | |
|---|---|---|
| Bottom | ||
| EmptyBoundingRect |
Returns an empty BoundingRect which is convenient as a start for the MinMax(GeoPoint2D) method.
| |
| Left | ||
| Right | ||
| Top |
Properties
| Name | Description | |
|---|---|---|
| Height | ||
| IsInfinite |
Returns true if the BoundingRect is infinite. I.e. left and bottom equal Double.MinValue
and right and top equal Double.MaxValue
| |
| UnitBoundingRect |
Returns an empty BoundingRect which is convenient as a start for the MinMax(GeoPoint2D) method.
| |
| Width |
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| IComparable<(Of <<'(BoundingRect>)>>)..::..CompareTo | ||
| IQuadTreeInsertable..::..GetExtent | ||
| IQuadTreeInsertable..::..HitTest | ||
| IQuadTreeInsertable..::..ReferencedObject |