Boost logo

Boost Users :

Subject: Re: [Boost-users] making a geometry half closed
From: TONGARI J (tongari95_at_[hidden])
Date: 2014-01-26 20:22:15


2014-01-27 Barend Gehrels <barend_at_[hidden]>

> Sean Farrow wrote On 26-1-2014 22:57:
>
> Hi,
>
>
>
> Ok, take a windows RECT structure:
>
> typedef struct _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.
>

Doesn't that have the exact meaning as model::box?
max_corner is also exclusive, not?



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