Re: RFE: Shape Intersection

2021-01-18 Thread Almas Baimagambetov
ncorporate this type of library into JavaFX. I > know it would require a bit of a rewrite but I think it would be worth it! > >> Jim Kay > >> > >> -Original Message- > >> From: openjfx-dev On Behalf Of Nir > Lisker > >> Sent: 18 January 2021 11:42

Re: RFE: Shape Intersection

2021-01-18 Thread Tom Eugelink
into JavaFX. I know it would require a bit of a rewrite but I think it would be worth it! Jim Kay -Original Message- From: openjfx-dev On Behalf Of Nir Lisker Sent: 18 January 2021 11:42 To: Dirk Lemmermann Cc: OpenJFX Subject: Re: RFE: Shape Intersection If this is to be implemented

RE: RFE: Shape Intersection

2021-01-18 Thread Kay, Jim
limited existing functionality. Jim -Original Message- From: openjfx-dev On Behalf Of Michael Paus Sent: 18 January 2021 12:11 To: openjfx-dev@openjdk.java.net Subject: Re: RFE: Shape Intersection I just mentioned JTS in a tweet myself (https://urldefense.proofpoint.com/v2/url?u=https

Re: RFE: Shape Intersection

2021-01-18 Thread Michael Paus
v On Behalf Of Nir Lisker Sent: 18 January 2021 11:42 To: Dirk Lemmermann Cc: OpenJFX Subject: Re: RFE: Shape Intersection If this is to be implemented in JavaFX, then it's better to do (not tested): 1. Extract the intersection computation from Shape.intersect private static Area intersect

Re: RFE: Shape Intersection

2021-01-18 Thread Almas Baimagambetov
If we are adding non-static methods, then the whole "bundle" should probably be included for consistency. E.g. union, subtract, etc. On Mon, 18 Jan 2021, 11:43 am Nir Lisker, wrote: > If this is to be implemented in JavaFX, then it's better to do (not > tested): > > 1. Extract the intersection c

RE: RFE: Shape Intersection

2021-01-18 Thread Kay, Jim
al Message- From: openjfx-dev On Behalf Of Nir Lisker Sent: 18 January 2021 11:42 To: Dirk Lemmermann Cc: OpenJFX Subject: Re: RFE: Shape Intersection If this is to be implemented in JavaFX, then it's better to do (not tested): 1. Extract the intersection computation from Shape.intersect

Re: RFE: Shape Intersection

2021-01-18 Thread Nir Lisker
If this is to be implemented in JavaFX, then it's better to do (not tested): 1. Extract the intersection computation from Shape.intersect private static Area intersectionArea(Shape shape1, Shape shape2) { Area result = shape1.getTransformedArea(); return result.intersect(shape2.getTransfo

RFE: Shape Intersection

2021-01-18 Thread Dirk Lemmermann
I just noticed that there is no „intuitive“ API to check whether two shapes intersect with each other. The only way (I think) to do it is as follows: Shape.intersect((Shape) child, circle).getBoundsInLocal().getWidth() != -1 If this is indeed the case I would like to propose that a method shall