This is two questions in one.
- Does Unity have something to calculate the intersection of two polygons?
- Does Unity have a way of calculating the area of a polygon?
This is two questions in one.
A Does unity have someway to detect where 2 shapes collide? thats call collision detection.
the formula for the area of a polygon is well known
squareing and tangent and all the hard math stuff does indeed have functions in mathf
like mathf.tan
You just write the formula found on the website using the mathf functions for things like the square of a number and the tangent.
As far as I’m aware, Unity doesn’t know what a polygon is - it only keeps track of individual triangles.
You could teach it about polygons and intersection, like you mentioned, but it’s not a default option.