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
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
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
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
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
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
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
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