github/Archimedes — pull request #21 by robb (2013-08-12 09:22:58+00:00)
Title: Add MEDRectAlignWithRect

This adds `MEDRectAlignWithRect` which allows users to align one rect with another one on one edge.

Here's some lovely ASCII art to explain what's going on:

Before:
```
+------+
| |
| | +--+
| | | |
| | +--+
| |
+------+
```
After `MEDRectAlignWithRect(inner, outer, CGRectMinXEdge)`
```
+------+
| |
+--+ |
| | |
+--+ |
| |
+------+
```

We could also introduce our own `MEDEdge` options enum that allows something like:

Before:
```
+--------+
| |
| |
| |
| |
| | +--+
+--------+ | |
+--+
```

After `MEDRectAlignWithRect(inner, outer, MEDMinXEdge | MEDMaxXEdge | MEDMinYEdge)`

```
+--+--+--+
| | | |
| +--+ |
| |
| |
| |
+--------+
```

`MEDRectAlignWithRect(inner, outer, MEDMinXEdge | MEDMaxXEdge | MEDMinYEdge | MEDMaxYEdge)` would then be equivalent to MEDRectCenterInRect(inner, outer) in #20.