I have the following:

I want the center rectangle to be concentric with the outer rectangle (the separation of each edge should be equal). What’s the best way to do this?

  • the16bitgamer@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    11 months ago

    I’d do either 45 degree lines of equal length on 2 corners with the same length, or 2 boxes with equal lengths.

    It depends on what method would be easiest for you to implement and what your using to determine the distance between the rectangles.

  • scv@discuss.online
    link
    fedilink
    arrow-up
    2
    ·
    11 months ago

    Should the horizontal and vertical edges have the same separation?

    Add construction lines connecting rectangle A’s top right corner and rectangle B’s top right corner, repeat for each corner, constrain the 4 lines to be equal in length.