So I've spent a little bit of time today playing with xcode-like constraints. If you've ever used interface builder in Xcode this should be familiar to you. Notice how layerA doesn't have a width, height, x, or y. We use constraints to define them.
I don't know, would anyone find this useful? I added an addConstraint() function to the layer class and built functions to toggle the guides on and off.