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 301 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 337 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 350 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 361 of file Point.cs.
◆ Intersection()
Computes the intersection of two Rectangles.
- Parameters
-
- Returns
- The rectangle corresponding to the intersection of rectangle1 and rectangle2 , or Rectangle.NaN if the intersection is empty.
Definition at line 406 of file Point.cs.
◆ IsNaN()
bool VectSharp.Rectangle.IsNaN |
( |
| ) |
|
Checks whether the rectangle is equivalent to Rectangle.NaN.
- Returns
true
if all the dimensions of the rectangle are double.NaN, false
otherwise.
Definition at line 312 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 430 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 463 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 373 of file Point.cs.
◆ Location
Point VectSharp.Rectangle.Location |
The top-left corner of the rectangle.
Definition at line 320 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 306 of file Point.cs.
◆ Size
Size VectSharp.Rectangle.Size |
The size of the rectangle.
Definition at line 325 of file Point.cs.
◆ Centre
Point VectSharp.Rectangle.Centre |
|
get |
The centre of the rectangle.
Definition at line 330 of file Point.cs.
The documentation for this struct was generated from the following file: