Represents a rectangle.
More...
|
static readonly Rectangle | NaN = new Rectangle(double.NaN, double.NaN, double.NaN, double.NaN) |
| A rectangle whose dimensions are all double.NaN. More...
|
|
Represents a rectangle.
Definition at line 172 of file Point.cs.
◆ Rectangle() [1/3]
VectSharp.Rectangle.Rectangle |
( |
Point |
location, |
|
|
Size |
size |
|
) |
| |
Create a new Rectangle given its top-left corner and its size.
- Parameters
-
location | The top-left corner of the rectangle. |
size | The size of the rectangle. |
Definition at line 194 of file Point.cs.
◆ Rectangle() [2/3]
VectSharp.Rectangle.Rectangle |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
width, |
|
|
double |
height |
|
) |
| |
Create a new Rectangle given its top-left corner and its size.
- Parameters
-
x | The horizontal coordinate of the top-left corner of the rectangle. |
y | The vertical coordinate of the top-left corner of the rectangle. |
width | The width of the rectangle. |
height | The height of the rectangle. |
Definition at line 207 of file Point.cs.
◆ Rectangle() [3/3]
VectSharp.Rectangle.Rectangle |
( |
Point |
topLeft, |
|
|
Point |
bottomRight |
|
) |
| |
Create a new Rectangle given its top-left corner and its bottom-right corner.
- Parameters
-
topLeft | The top-left corner of the rectangle. |
bottomRight | The bottom-right corner of the rectangle. |
Definition at line 218 of file Point.cs.
◆ Union() [1/3]
Computes the rectangular bounds of the union of multiple Rectangles.
- Parameters
-
rectangles | The Rectangles whose union will be computed. |
- Returns
- The smallest Rectangle containing all the rectangles .
Definition at line 262 of file Point.cs.
◆ Union() [2/3]
Computes the rectangular bounds of the union of multiple Rectangles.
- Parameters
-
rectangles | The Rectangles whose union will be computed. |
- Returns
- The smallest Rectangle containing all the rectangles .
Definition at line 295 of file Point.cs.
◆ Union() [3/3]
Computes the rectangular bounds of the union of two Rectangles.
- Parameters
-
- Returns
- The smallest Rectangle containing both rectangle1 and rectangle2 .
Definition at line 230 of file Point.cs.
◆ Location
Point VectSharp.Rectangle.Location |
The top-left corner of the rectangle.
Definition at line 182 of file Point.cs.
◆ NaN
readonly Rectangle VectSharp.Rectangle.NaN = new Rectangle(double.NaN, double.NaN, double.NaN, double.NaN) |
|
static |
A rectangle whose dimensions are all double.NaN.
Definition at line 177 of file Point.cs.
◆ Size
Size VectSharp.Rectangle.Size |
The size of the rectangle.
Definition at line 187 of file Point.cs.
The documentation for this struct was generated from the following file: