Implementing alignRectanglesWithAlignment() in ADBGeometry.