@@ -17,8 +17,8 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Creates a new box from a corner and its opposite corner, each as either a {@link Point} or a pair of coordinates. |
| 19 | 19 | * |
| 20 | - * @param Point|float[] $corner |
|
| 21 | - * @param Point|float[] $oppositeCorner |
|
| 20 | + * @param Point|null $corner |
|
| 21 | + * @param Point|null $oppositeCorner |
|
| 22 | 22 | * @return Box |
| 23 | 23 | */ |
| 24 | 24 | public static function fromOppositeCorners($corner, $oppositeCorner): Box |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * Creates a new circle by its center point and radius. |
| 17 | 17 | * |
| 18 | - * @param Point|float[] $center the center point |
|
| 18 | + * @param Point|null $center the center point |
|
| 19 | 19 | * @param float $radius radius of the circle |
| 20 | 20 | * @return Circle |
| 21 | 21 | */ |
@@ -17,8 +17,8 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Creates a new line segment from its start and end point, each as either a {@link Point} or a pair of coordinates. |
| 19 | 19 | * |
| 20 | - * @param Point|float[] $start |
|
| 21 | - * @param Point|float[] $end |
|
| 20 | + * @param Point|null $start |
|
| 21 | + * @param Point|null $end |
|
| 22 | 22 | * @return LineSegment |
| 23 | 23 | */ |
| 24 | 24 | public static function fromEndpoints($start, $end): LineSegment |