Hi, Mateusz Ĺoskot wrote On 27-1-2014 10:40:
On 26 January 2014 23:00, Adam Wulkiewicz
wrote: The coordinates aren't floating points. Maybe using right-1 for
and bottom-1 for could work? It probably depends on the use case. I also think offsetting right and bottom segments would do the trick, as long as the coordinates are discrete.
Yes, it is a good idea to consider but it really depends on the use-case, indeed. For example: calculating the area would then go quite wrong. And calculating the perimeter would go a bit wrong. But within might succeed. We follow OGC's model for all geometries, so there is an interior, there is a boundary and there is an exterior. Points can be placed "on boundary" or inside or outside. A segment-crossing goes via the boundary. If there is at one side no boundary, the underlying assumptions fail. So that's why I wrote: "it's not implemented". But you can try to do things of course, it will compile. Regards, Barend