Instrumentation Widgets for PDA

VectorRectangle Members

VectorRectangle overview

Public Static (Shared) Operators and Type Conversions

Equality Operator Equality operator for the two specified VectorRectangle instances.
Inequality Operator Non-equality operator for the two specified VectorRectangle instances.
Explicit VectorRectangle to Rectangle Conversion Converts the specified VectorRectangle to an integer Rectangle with truncation.
Implicit VectorRectangle to RectangleF Conversion Converts the specified VectorRectangle to a RectangleF
Implicit Rectangle to VectorRectangle Conversion Converts the specified Rectangle to a VectorRectangle
Implicit RectangleF to VectorRectangle Conversion Converts the specified RectangleF to a VectorRectangle

Public Instance Constructors

VectorRectangle Overloaded. Initializes a new instance of the VectorRectangle class.

Public Instance Properties

Bottom Gets Y coordinate of the bottom side of the rectangle.
BottomCenter Gets location of the center of the bottom side of the rectangle.
BottomLeft Gets location of the bottom left corner of the rectangle.
BottomRight Gets location of the bottom right corner of the rectangle.
Center Gets location of the center of the rectangle.
CenterX Gets X coordinate of the center of the rectangle.
CenterY Gets Y coordinate of the center of the rectangle.
Height Gets or sets height of the rectangle.
IsEmpty Gets if width and height of the current VectorRectangle are zeros.
Left Gets X coordinate of the left side of the rectangle.
LeftCenter Gets location of the center of the left side of the rectangle.
Location Gets or sets location of the rectangle (the top left corner).
Right Gets X coordinate of the right side of the rectangle.
RightCenter Gets location of the center of the right side of the rectangle.
Size Gets or sets size of the rectangle.
Top Gets Y coordinate of the top side of the rectangle.
TopCenter Gets location of the center of the top side of the rectangle.
TopLeft Gets location of the top left corner of the rectangle.
TopRight Gets location of the top right corner of the rectangle.
Width Gets or sets width of the rectangle
X Gets or sets X coordinate of the top left corner of the rectangle
Y Gets or sets Y coordinate of the top left corner of the rectangle

Public Instance Methods

Area Returns the area of the current VectorRectangle object.
Contains Returns whether the current VectorRectangle contains the specified point.
Equals Determines whether two VectorRectangle instances are equal.
GetHashCode Serves as a hash function for VectorRectangle, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
PositiveRectangle Returns a new VectorRectangle instance with the geometry identical to the current instance and with positive width and height values.
Quant Aligns the current VectorRectangle instance using the specified grid steps.
QuantX Aligns the current VectorRectangle instance horizontally using the specified grid x-step.
QuantY Aligns the current VectorRectangle instance vertically using the specified grid y-step.
Round Rounds rectangle coords.
ToString Returns a String that represents the current VectorRectangle object.
Truncate Truncates the current instance of VectorRectangle to integer Rectangle.

See Also

VectorRectangle Class | PerpetuumSoft.InstrumentationPDA.Mathematics Namespace