center point of overlapping bounding boxes

Discussion in 'Cadence' started by PolyPusher, Oct 11, 2011.

  1. PolyPusher

    PolyPusher Guest

    Hi,

    Given to bBoxes that intersect I want to find the center point of the
    two. Where do I start?

    Thank you,
    Eric
     
    PolyPusher, Oct 11, 2011
    #1
  2. PolyPusher wrote, on 10/11/11 14:36:
    Eric

    procedure(abMultiBoxCenter(@rest boxes)
    centerBox(
    list(apply('mapcar 'min mapcar('lowerLeft boxes))
    apply('mapcar 'max mapcar('upperRight boxes))
    )
    )
    )

    You can then do:

    abMultiBoxCenter(bBox1 bBox2)

    (or indeed abMultiBoxCenter(bBox1 bBox2 bBox3 bBox4...) if you wanted).

    Andrew.
     
    Andrew Beckett, Nov 11, 2011
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.