I have a set of points A
. I get the convex hull CH_A
of A
.
Then, I have extra points, point set B
. I add B
into A
and get a bigger point set. I obtain the convex hull CH_AB
of this bigger set containing both A
and B
.
I want to quantify how much I have to pay to add B
into set A
. I am thinking about using an additional area to quantify this cost.
Say CH_A
has an area of Area_A
, then CH_AB
has an area of Area_AB
. Then, I want to calculate the marginal cost as
(Area_AB - Area_A) / Area_A
How may I get the area of the convex hull in Python?