39 public RectangleT(TPosition x, TPosition y, TSize width, TSize height)
80 public override bool Equals(
object? obj)
87 if (ReferenceEquals(
this, obj))
124 return Formatting.Invariant(
125 $
"{GetType().Name}{{ X = {X}, Y = {Y}, Width = {Width}, Height = {Height} }}");
153 public Rectangle(
int x,
int y, uint width, uint height) : base(x, y, width, height)
191 public RectangleF(
float x,
float y,
float width,
float height) : base(x, y, width, height)
229 public RectangleU(uint x, uint y, uint width, uint height) : base(x, y, width, height)
Represents a 2D point with generic coordinates.
Represents a rectangle with generic coordinates and dimensions.
SizeT< TSize > Size
Gets the size of the rectangle.
TSize Width
Gets the width of the rectangle.
TSize Height
Gets the height of the rectangle.
override int GetHashCode()
Returns a hash code for the current point.
TPosition Y
Gets the Y coordinate of the top-left corner of the rectangle.
override bool Equals(object? obj)
Determines whether the specified object is equal to the current RectangleT<TPosition,...
override string ToString()
Returns a string representation of the rectangle.
RectangleT(TPosition x, TPosition y, TSize width, TSize height)
Initializes a new instance of the RectangleT<TPosition,TSize> class with specified coordinates and di...
PointT< TPosition > Position
Gets the position of the rectangle.
TPosition X
Gets or sets the X coordinate of the top-left corner of the rectangle.
RectangleT(PointT< TPosition > position, SizeT< TSize > size)
Initializes a new instance of the RectangleT<TPosition,TSize> class with specified coordinates and di...
Represents a size with generic width and height values.
T Width
Gets the width of the size.
T Height
Gets the height of the size.
override bool Equals(object? obj)
Determines whether the specified object is equal to the current SizeT<T>.
Represents a 2D point with floating-point coordinates.
Represents a 2D point with integer coordinates.
Represents a 2D point with unsigned integer coordinates.
Represents a rectangle with floating-point coordinates and dimensions.
RectangleF(float x, float y, float width, float height)
Initializes a new instance of the RectangleF class with specified floating-point coordinates and dime...
RectangleF()
Initializes a new instance of the RectangleF class with default values (0.0f, 0.0f,...
RectangleF(PointF point, SizeF size)
Initializes a new instance of the RectangleF class with location and size.
Represents a rectangle with integer coordinates and dimensions.
Rectangle()
Initializes a new instance of the Rectangle class with default values (0, 0, 0, 0).
Rectangle(int x, int y, uint width, uint height)
Initializes a new instance of the Rectangle class with specified integer coordinates and dimensions.
Rectangle(Point point, Size size)
Initializes a new instance of the Rectangle class with location and size.
Represents a rectangle with unsigned integer coordinates and dimensions.
RectangleU(PointU point, Size size)
Initializes a new instance of the Rectangle class with location and size.
RectangleU(uint x, uint y, uint width, uint height)
Initializes a new instance of the RectangleU class with specified integer coordinates and dimensions.
RectangleU()
Initializes a new instance of the RectangleU class with default values (0, 0, 0, 0).
Represents a size with floating-point width and height values.
Represents a size with integer width and height values.