07-14-2018, 03:12 AM
Shoelace Method for determining the area enclosed by any polygon. Enter the (X,Y) coordinates of the N polygon corners in a 2xN matrix and run the program. Example enter the following matrix of (X,Y) coordinates:
[[2 5]
[7 10]
[12 20]
[8 12]
[4 3]]
The polygon area calculated by the program is 10.5
[[2 5]
[7 10]
[12 20]
[8 12]
[4 3]]
The polygon area calculated by the program is 10.5