[]
Initializes a C1Rect structure that is exactly large enough to contain the two specified points.
public C1Rect(C1Point point1, C1Point point2)
| Type | Name | Description |
|---|---|---|
| C1Point | point1 | The first point that the new rectangle must contain. |
| C1Point | point2 | The second point that the new rectangle must contain. |
Initializes a C1Rect structure based on an origin and size.
public C1Rect(C1Point location, C1Size size)
| Type | Name | Description |
|---|---|---|
| C1Point | location | The location. |
| C1Size | size | The size. |
Initializes a C1Rect structure that has the specified x-coordinate, y-coordinate, width, and height.
public C1Rect(double x, double y, double width, double height)
| Type | Name | Description |
|---|---|---|
| double | x | The x-coordinate of the top-left corner of the rectangle. |
| double | y | The y-coordinate of the top-left corner of the rectangle. |
| double | width | The width of the rectangle. |
| double | height | The height of the rectangle. |