Name | Description | |
---|---|---|
NRectangleI Constructor | Overloaded. |
The following tables list the members exposed by NRectangleI.
Name | Description | |
---|---|---|
NRectangleI Constructor | Overloaded. |
Name | Description | |
---|---|---|
Height | Rectangle height | |
Width | Rectangle width | |
X | X coordinate of the left top corner | |
Y | Y coordinate of the left top corner | |
Zero | The empty rectangle |
Name | Description | |
---|---|---|
Area | Obtains the rectangle area (width * Height) | |
Bottom | Gets the bottom side of the rectangle | |
Center | Gets the rectangle center | |
IsEmpty | Determines whether the rectangle is with zero width or Height | |
IsNormalized | Determines whether the rectangle is normalized (both width and height are not negative) | |
LeftBottom | Gets the rectangle left bottom corner | |
Location | Gets or sets the rectangle location (left-top corner) | |
Middles | Gets an array with the rectangle sides middle points | |
Perimeter | Obtains the rectangle perimeter (2 * width) + (2 * Height) | |
Right | Gets the right side of the rectangle | |
RightBottom | Gets the rectangle right bottom corner | |
RightTop | Gets the rectangle right top corner | |
Size | Gets or sets the size of this rectangle | |
Vertices | Gets an array with the rectangle vertices | |
VerticesAndMiddles | Gets an array with the rectangle vertices and middles enumerated clockwise starting from the left-top vertex |
Name | Description | |
---|---|---|
Contains | Overloaded. Determines whether the rectangle contains the point with the specified coordinates | |
Equals | ||
FitRectangle | Returns the fitted rectangle with the specified orientation (in degrees) | |
FromCenterAndSize | Gets a rectangle from center and dimensions | |
FromLTRB | Gets a rectangle from the coordinates of it's sides | |
FromTwoPoints | Overloaded. Gets a normalized rectangle from two points | |
GetCompassPoint | Obtains the point on the rectangle rim, which corresponds to the specified compass direction | |
GetHashCode | ||
GetOppositeCompassPoint | Obtains the point on the rectangle rim, which corresponds to the specified compass direction | |
IncludePoint | Includes the point in this rectangle | |
InclusiveContains | Determines whether the rectangle contains the point with the specified coordinates | |
InclusiveIntersectsWith | Determines whether this rectangle intersects with the specified rectangle | |
Inflate | Overloaded. Inflates the rectangle with the specified amounts | |
Intersection | Returns a third rectangle that represents the intersection of two rectangles. If there is no intersection, the Zero rectangle is returned | |
IntersectsWith | Determines whether this rectangle intersects with the specified rectangle | |
Normalize | Normalizes this rectangle | |
Offset | Offsets the rectangle with the specified x and y amount. | |
ResizeRectangle | Computes a new rect for an expected resize of a rectangle in the specified compass direction | |
Scale | Scales the rectangle with the specified factors | |
ToNRange2D | Converts this rectangle to an NRange2D. | |
ToNRectangle | Converts this rectangle to RectangleF | |
ToString | Returns the string representation of this object | |
Translate | Translates this rectangle with the specified amounts | |
Union | Creates the smallest possible third rectangle that can contain the two rectangles that form a union |
Equality | Determines whether a is equal to b |
Inequality | Determines whether a is not equal to b |