ODL 129 TEAM B Coursework 1
Question 2.
Given a 2D Blocks World populated by rectangles (including squares), circles and triangles, define what you consider are the requirements for two blocks to be deemed adjacent - i.e. next to each other (but not overlapping). For the moment, you need only consider the requirements of a definition of "adjacent" in relation to rectangular blocks (though your definition ought to be generalisable to blocks  of arbitrary shape (type).
Answer
In a 2D Blocks world two blocks can be deemed adjacent, but not overlapping if they are next to each other. i.e. alongside, left or right, sharing a common border or boundary, directly in front of or behind each other, or next to each other diagonally. The blocks can be in contact along their edges but cannot lie partly or completely over each other (overlap)
This is illustrated in our diagram where the blocks share a common border. Although the  blocks themselves may not be in contact or touching each other. If a shape occupies any part of a  square within the grid then it is deemed to be occuping the whole of that grid square This definition is applicable when considering arbitrary shapes such as triangles and circles. e.g Shapes B and H (from diagram) are adjacent as they share the same gridline location at  (6,6)
To summarise if the above definition of adjacency is applied to our diagram, then adjaceny  in rectangular blocks would be found between, B-C and D-E. Blocks of arbitary shape that  would also be adjacent would be, B-I, B-H, C-H and finally F-J.
Question 1
To top
Question 3
Question 4
Question 5
Hosted by www.Geocities.ws

1