georust / geo

Geospatial primitives and algorithms for Rust
https://crates.io/crates/geo
Other
1.48k stars 191 forks source link

How to calculate intersection area of two rotated rectangles? #1137

Closed Boltzmachine closed 5 months ago

Boltzmachine commented 5 months ago

I would like to calculate the intersection area of two rectangles of any orientation. But I cannot figure out how I can achieve this by reading the documentation. Can anyone help me?

lnicola commented 5 months ago

I guess there are a couple of parts to this question:

If you have other questions, don't hesitate to ask on Discord or GitHub Discussions!

Boltzmachine commented 5 months ago

Thanks. I will try