PHP function to find the area of any room

Viewed 19

I just want a function that I can put any amount of line lengths into, and it gives me the area of them when joined together to make a polygon.

I thought this would be a simple function in geometry, but it looks like it is quite complex, based on wether the final result is a regular or irregular polygon.

Anyone have a simple math function for this, or even better, one converted to PHP?

0 Answers
Related