Boost logo

Boost Users :

Subject: Re: [Boost-users] making a geometry half closed
From: Nat Goodspeed (nat_at_[hidden])
Date: 2014-01-26 19:15:49


On Sun, Jan 26, 2014 at 6:05 PM, Barend Gehrels <barend_at_[hidden]> wrote:

> Sean Farrow wrote On 26-1-2014 22:57:

> Ok, take a windows RECT structure:
> ...
>
> By convention, the right and bottom edges of the rectangle are normally considered exclusive. In other words, the pixel whose coordinates are ( right, bottom ) lies immediately outside of the rectangle. For example, when RECT is passed to the FillRect function, the rectangle is filled up to, but not including, the right column and bottom row of pixels.
>
> How can I gain the same behaviour when doing equals, overlaps etc.?

> As said it is not implemented like this.

Does adapting RECT for Geometry involve copying values? Could one
write an adapter specific to RECT which would subtract 1 from the
original right and bottom?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net