CADability dotNET

The BoundingRect type exposes the following members.

Constructors

  NameDescription
Public methodBoundingRect(Rectangle)
Creates a new BoundingRect from the provided System.Drawing.rectangle
Public methodBoundingRect(array<GeoPoint2D>[]()[][])
Creates a new BoundingRect which contains the provided points
Public methodBoundingRect(GeoPoint2D, Double, Double)
Creates a new BoundingRect with the provided center, half width and half height
Public methodBoundingRect(Double, Double, Double, Double)
Creates a new BoundingRect with the provided limits.

Methods

  NameDescription
Public methodStatic memberDisjoint
Returns true if the two rectangles are disjoint (do not overlap)
Public methodGetCenter
Returns the center of the rectangle
Public methodGetLowerLeft
Returns the lower left point of the rectangle
Public methodGetLowerMiddle
Returns the center of the bottom line of the rectangle
Public methodGetLowerRight
Returns the lower right point of the rectangle
Public methodGetMiddleLeft
Returns the center of the left line of the rectangle
Public methodGetMiddleRight
Returns the center of the right line of the rectangle
Public methodGetPosition
Returns the position of the provided point with a given precision
Public methodGetUpperLeft
Returns the upper left point of the rectangle
Public methodGetUpperMiddle
Returns the center of the upper line of the rectangle
Public methodGetUpperRight
Returns the upper right point of the rectangle
Public methodInflate(Double)
Inflates the rectangle by the provided value which may also be negative
Public methodInflate(Double, Double)
Inflates the rectangle with different values in width an height
Public methodInterferes
Returns true, when this rectangle and the provided rect overlap
Public methodIsEmpty
Returns true, if this BoundingRect is empty.
Public methodMakeEmpty
Makes this BoundingRect an empty BoundingRect
Public methodMinMax(BoundingRect)
Adapts the size of this bounding rectangle to include the provided rectangle.
Public methodMinMax(GeoPoint2D)
Adapts the size of this bounding rectangle to include the provided point.
Public methodModify
Modifies the rectangle by the provided ModOp2D. The resulting rectangle contains the modified vertices of this rectangle
Public methodMove
Moves the rectangle by the provided offset
Public methodToBorder
Returns a Border that consists of the four lines of this ractangle.

Operators

  NameDescription
Public operatorStatic memberAddition(BoundingRect, BoundingRect)
Public operatorStatic memberAddition(BoundingRect, Double)
Returns an inflated or deflated rectangle
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(BoundingRect to Rectangle)
Typecast to a System.Drawing.Rectangle
Public operatorStatic memberGreaterThan(BoundingRect, BoundingRect)
Determins whether r2 is contained in r1.
Public operatorStatic memberGreaterThan(GeoPoint2D, BoundingRect)
Determins whether the provided point is outside of the provided ractangle
Public operatorStatic memberGreaterThanOrEqual(BoundingRect, BoundingRect)
Determins whether r2 is contained in r1. It may also contact one ore multiple sides of the rectangle.
Public operatorStatic memberGreaterThanOrEqual(GeoPoint2D, BoundingRect)
Determins whether the provided point is outside of the provided ractangle. It may also reside on one of the bounding lines.
Public operatorStatic memberLessThan(BoundingRect, BoundingRect)
Determins whether r1 is contained in r2.
Public operatorStatic memberLessThan(GeoPoint2D, BoundingRect)
Determins whether the provided point is contained in the provided rectangle
Public operatorStatic memberLessThanOrEqual(BoundingRect, BoundingRect)
Determins whether r1 is contained in r2. It may also contact one ore multiple sides of the rectangle.
Public operatorStatic memberLessThanOrEqual(GeoPoint2D, BoundingRect)
Determins whether the provided point is contained in the provided rectangle. It may also reside on one of the bounding lines.
Public operatorStatic memberMultiply
Returns a rectangle which is scaled by the provided factor. The center remaines fixed.

Fields

  NameDescription
Public fieldBottom
Public fieldStatic memberEmptyBoundingRect
Returns an empty BoundingRect which is convenient as a start for the MinMax(GeoPoint2D) method.
Public fieldLeft
Public fieldRight
Public fieldTop

Properties

  NameDescription
Public propertyHeight
Public propertyIsInfinite
Returns true if the BoundingRect is infinite. I.e. left and bottom equal Double.MinValue and right and top equal Double.MaxValue
Public propertyStatic memberUnitBoundingRect
Returns an empty BoundingRect which is convenient as a start for the MinMax(GeoPoint2D) method.
Public propertyWidth

Explicit Interface Implementations

See Also