Algorithms for positioning rectangles evenly spaced with unknown connecting lines
Posted
by
MacGyver
on Game Development
See other posts from Game Development
or by MacGyver
Published on 2014-08-23T20:37:46Z
Indexed on
2014/08/23
22:36 UTC
Read the original article
Hit count: 251
I'm new to game development, but I'm trying to figure out a good algorithm for positioning rectangles (of any width and height) in a given surface area, and connecting them with any variation of lines. Two rectangles will never have more than one line connecting them.
Where would I begin working on a problem like this? This is only a 2 dimensional surface. I read about graph theory, and it seems like this is a close representation of that. The rectangles would be considered a node, and the lines connecting them would be considered an edge in graph theory.
© Game Development or respective owner