Open adisidev opened 2 years ago
https://github.com/mgastner/cartogram-cpp/pull/136#discussion_r918568195
On a small side note, should we also replace
total_inset_area()
with justarea
? The fact that it is the area of the inset is implicit in having it called from an object of the class inset or inside a member function. We could make similar changes in other places such asset_inset_name
-->set_name
, andtotal_target_area
-->target_area
.
It does not make sense to call the member function inside the
cart_info
objectcart_total_target_area
, as it is implicit that the target area would be of the entirecartogram
as it is called from acart_info
object.Similarly, change
total_inset_area
toarea
.