Name | Description | |
---|---|---|
NRectangle Constructor | Overloaded. |
The following tables list the members exposed by NRectangle.
Name | Description | |
---|---|---|
NRectangle Constructor | Overloaded. |
Name | Description | |
---|---|---|
Height | Rectangle height | |
NaN | The NaN rectangle. | |
Width | Rectangle width | |
X | X coordinate of the left top corner | |
Y | Y coordinate of the left top corner | |
Zero | The Zero rectangle. |
Name | Description | |
---|---|---|
Area | Obtains the rectangle area (Width * Height). | |
Bottom | Gets the bottom side of the rectangle | |
BottomCenter | Gets the bottom center point | |
Bounds | Gets the minimal enclosing rectangle | |
BoundsRange | ||
Center | Gets the rectangle center | |
CenterX | Gets the X center | |
CenterY | Gets the X 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). | |
IsValid | Indicates whether all fields of the rectangle are defined, i.e. whether X, Y, Width and Height are all different from Double.NaN. | |
Left | Gets the left side of the rectangle | |
LeftBottom | Gets the rectangle left bottom corner | |
LeftCenter | Gets the left center point | |
LeftTop | Gets or sets the rectangle left-top corner (location) | |
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 | |
RightCenter | Gets the right center point | |
RightTop | Gets the rectangle right top corner | |
Size | Gets or sets the size of this rectangle | |
Top | Gets the top side of the rectangle | |
TopCenter | Gets the top center point | |
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 | |
---|---|---|
AddToPath | Appends the primitive to the specified graphics path | |
Contains | Overloaded. Determines whether the rectangle contains the specified point | |
ContainsOnOutline | Determines whether the outline of the rectangle contains the specified point | |
Deflate | Overloaded. Deflates the rectangle with the specified amount | |
Deserialize | Deserializes the object state from the specified property bag. | |
Distance | Calculates the distance of the specified point to this rectangle. Returns 0 if the point is inside the rectangle. | |
Equals | Overloaded. Checks whether this size is equal to the other size | |
FitRectangle | Returns the fitted rectangle with the specified orientation (in degrees) | |
FromCenterAndSize | Overloaded. 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 | |
GetAlignedPoint | Overloaded. Obtains the point on the rectangle rim, which corresponds to the specified alignment | |
GetAlignedRectangle | Gets a rectangle which is aligned to this rectangle according to the specified content alignment. If clip is true and the provided size is larger than the specified size, the returned rectangle size is clampted to this rectangle size. | |
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 is oppisite to the point which corresponds to the specified compass direction | |
GetOutlineLength | Gets the rectangle perimeter | |
InclusiveContains | Overloaded. Determines whether the rectangle contains the point | |
InclusiveIntersectsWith | Determines whether this rectangle intersects with the specified rectangle | |
Inflate | Overloaded. Inflates the rectangle with the specified amount. | |
Intersection | Overloaded. Returns a third rectangle that represents the intersection of two rectangles. If there is no intersection, the Zero rectangle is returned. | |
IntersectionArea | Computes the intersection area of this rect with the specified rect | |
IntersectsWith | Overloaded. Determines whether this rectangle intersects with the specified rectangle | |
IntersectWith | Intersects this rectangle with the specified line segment | |
IntersectWithRadianLine | Intersects this rectangle with a line connecting the rectangle center and the specified point | |
MiddleRect | Gets the middle rectangle from two other rects. | |
Normalize | Makes sure that the Width and Height are positive values. If either is negative the X/Y respectively is subtracted with the Width/Height and the Width/Height is set to its absolute positive value. | |
ResizeRectangle | Overloaded. Computes a new rect for an expected resize of a rectangle in the specified compass direction. Does not allow the newly created rect size to exceed the specified minSize. | |
Round | Rounds this rectangle. | |
Scale | Scales the rectangle with the specified factors | |
Serialize | Serializes the object state into the specified property bag. | |
ToNRange2D | Converts this rectangle to an NRange2D. | |
ToString | Returns the string representation of this object | |
Translate | Translates the primitive with the specified amounts | |
Union | Overloaded. Creates the smallest possible rectangle that can contain the specified rectangles |
Equality | Determines whether a is equal to b |
Inequality | Determines whether a is not equal to b |