Nevron Open Vision Documentation
NRectangle Structure Members
Fields  Properties  Methods 


The following tables list the members exposed by NRectangle.

Public Constructors
 NameDescription
Public ConstructorNRectangle ConstructorOverloaded.   
Top
Public Fields
 NameDescription
Public FieldHeightRectangle height  
Public Fieldstatic (Shared in Visual Basic)NaNThe NaN rectangle.  
Public FieldWidthRectangle width  
Public FieldXX coordinate of the left top corner  
Public FieldYY coordinate of the left top corner  
Public Fieldstatic (Shared in Visual Basic)ZeroThe Zero rectangle.  
Top
Public Properties
 NameDescription
Public PropertyAreaObtains the rectangle area (width * Height)  
Public PropertyBottomGets the bottom side of the rectangle  
Public PropertyBottomCenterGets the bottom center point  
Public PropertyBoundsGets the minimal enclosing rectangle  
Public PropertyBoundsRange  
Public PropertyCenterGets the rectangle center  
Public PropertyCenterXGets the X center  
Public PropertyCenterYGets the X center  
Public PropertyIsEmptyDetermines whether the rectangle is with zero Width or Height.  
Public PropertyIsNormalizedDetermines whether the rectangle is normalized (both width and height are not negative)  
Public PropertyIsValidIndicates whether all fields of the rectangle are defined, i.e. whether X, Y, Width and Height are all different from Double.NaN.  
Public PropertyLeftGets the left side of the rectangle  
Public PropertyLeftBottomGets the rectangle left bottom corner  
Public PropertyLeftCenterGets the left center point  
Public PropertyLeftTopGets or sets the rectangle left-top corner (location)  
Public PropertyLocationGets or sets the rectangle location (left-top corner)  
Public PropertyMiddlesGets an array with the rectangle sides middle points  
Public PropertyPerimeterObtains the rectangle perimeter (2 * width) + (2 * Height)  
Public PropertyRightGets the right side of the rectangle  
Public PropertyRightBottomGets the rectangle right bottom corner  
Public PropertyRightCenterGets the right center point  
Public PropertyRightTopGets the rectangle right top corner  
Public PropertySizeGets or sets the size of this rectangle  
Public PropertyTopGets the top side of the rectangle  
Public PropertyTopCenterGets the top center point  
Public PropertyVerticesGets an array with the rectangle vertices  
Public PropertyVerticesAndMiddlesGets an array with the rectangle vertices and middles enumerated clockwise starting from the left-top vertex  
Top
Public Methods
 NameDescription
Public MethodAddToPathAppends the primitive to the specified graphics path  
Public MethodContainsOverloaded. Determines whether the rectangle contains the specified point  
Public MethodContainsOnOutlineDetermines whether the outline of the rectangle contains the specified point  
Public MethodDeflateOverloaded. Deflates the rectangle with the specified amount  
Public MethodDeserializeDeserializes the object state from the specified property bag.  
Public MethodEqualsOverloaded. Checks whether this size is equal to the other size  
Public Methodstatic (Shared in Visual Basic)FitRectangleReturns the fitted rectangle with the specified orientation (in degrees)  
Public Methodstatic (Shared in Visual Basic)FromCenterAndSizeOverloaded. Gets a rectangle from center and dimensions  
Public Methodstatic (Shared in Visual Basic)FromLTRBGets a rectangle from the coordinates of it's sides  
Public Methodstatic (Shared in Visual Basic)FromTwoPointsOverloaded. Gets a normalized rectangle from two points  
Public MethodGetAlignedPointObtains the point on the rectangle rim, which corresponds to the specified alignments  
Public MethodGetAlignedRectangleGets 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.  
Public MethodGetCompassPointObtains the point on the rectangle rim, which corresponds to the specified compass direction  
Public MethodGetHashCode  
Public MethodGetOppositeCompassPointObtains the point on the rectangle rim, which is oppisite to the point which corresponds to the specified compass direction  
Public MethodInclusiveContainsOverloaded. Determines whether the rectangle contains the point  
Public MethodInclusiveIntersectsWithDetermines whether this rectangle intersects with the specified rectangle  
Public MethodInflateOverloaded. Inflates the rectangle with the specified amount.  
Public Methodstatic (Shared in Visual Basic)IntersectionOverloaded. Returns a third rectangle that represents the intersection of two rectangles. If there is no intersection, the Zero rectangle is returned.  
Public MethodIntersectionAreaComputes the intersection area of this rect with the specified rect  
Public MethodIntersectsWithOverloaded. Determines whether this rectangle intersects with the specified rectangle  
Public MethodIntersectWithIntersects this rectangle with the specified line segment  
Public MethodIntersectWithRadianLineIntersects this rectangle with a line connecting the rectangle center and the specified point  
Public Methodstatic (Shared in Visual Basic)MiddleRectGets the middle rectangle from two other rects.  
Public MethodNormalizeMakes 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.  
Public Methodstatic (Shared in Visual Basic)ResizeRectangleOverloaded. 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.  
Public MethodRoundRounds this rectangle.  
Public MethodScaleScales the rectangle with the specified factors  
Public MethodSerializeSerializes the object state into the specified property bag.  
Public MethodToNRange2DConverts this rectangle to an NRange2D.  
Public MethodToStringReturns the string representation of this object  
Public MethodTranslateTranslates the primitive with the specified amounts  
Public Methodstatic (Shared in Visual Basic)UnionOverloaded. Creates the smallest possible rectangle that can contain the specified rectangles  
Top
Public Operators
public Operator Equality Determines whether a is equal to b
public Operator Inequality Determines whether a is not equal to b
Top
See Also

Reference

NRectangle Structure
Nevron.Nov.Graphics Namespace

 

 


©2017. Nevron Software LLC.

Send Feedback