java - Compute the symmetric difference of two regions (triangle and circle) -


is there way calculate symmetric difference between 2 regions (triangle , circle) in java (android)?

i have classes this

public class triangle{ double[] a; double[] b; double[] c; }

public class circle{ double center; double radius; }

and need know symmetric difference between regions. can not find related this.

this not available in standard java apis far know. need yourself. start might helpful note area of symmetric difference differences of areas of union , intersection of 2 regions. area of union sum of areas of 2 regions minus area of intersection. boils down calculating area of intersection. possible shapes of intersection of circle , triangle?


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -