Boost logo

Boost Users :

Subject: Re: [Boost-users] making a geometry half closed
From: Barend Gehrels (barend_at_[hidden])
Date: 2014-01-26 18:05:26


Sean Farrow wrote On 26-1-2014 22:57:
>
> Hi,
>
> Ok, take a windows RECT structure:
>
> typedefstruct_RECT {
>
> LONG left;
>
> LONG top;
>
> LONG right;
>
> LONG bottom;
>
> } RECT, *PRECT;
>
> The remarks then state:
>
> 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.?
>
> Any help appreciated.
>

As said it is not implemented like this.

Barend



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