Answer the question
In order to leave comments, you need to log in
Implementation, what and how?
Good afternoon!
Tell me in which direction to dig or maybe someone has examples.
The essence of the problem:
There is a selected area of arbitrary size, there are geometric shapes with height and width attributes, you need to place these shapes optimally inside the selected area, so that they do not overlap each other, and there are no holes with empty space between them.
example:
Shapes
[
{
"width ": 50,
"height": 20
},
{
"width ": 30,
"height": 10
},
{
"width ": 75,
"height": 70
}
]
Answer the question
In order to leave comments, you need to log in
If you want to do it thoughtfully and intelligently, read about matrices, operations on matrices, and all that interesting stuff.
This is the first course in engineering mathematics, it is enough just to type formulas from there and arrange them in the right order.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question