docs(does_it_fit): introduce functions arguments more explicitly

This commit is contained in:
Michele Sessa 2022-10-06 15:38:50 +01:00 committed by Michele
parent 9fff5aa95f
commit 2e2f1eab45
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Use the `areas_volumes` module provided to create two **functions**.
Create `area_fit`. It should return `true` if the geometric shape can fit inside the rectangular area as many times as is indicated by `times`.
The arguments of the function will be:
- `x` and `y`: length and width of the rectangular area.
- `objects`: the type of geometric shape.
- `times`: the number of geometric shapes to fit inside the rectangular area.
@ -19,6 +20,8 @@ Create `area_fit`. It should return `true` if the geometric shape can fit inside
- `side_b` of a `Rectangle`
Create `volume_fit`. It should return `true` if the geometric volume can fit inside the box as many times as is indicated by `times`.
The arguments of the function will be:
- `x`, `y` and `z`: length, width and depth of the box.
- `objects`: the type of geometric volume.
- `times`: the number of geometric volumes to fit inside the box.