Calculates surface area of a 3D or 2D object.
References
Jenness, J.S. Calculating Landscape Surface Area from Digital Elevation Models. Wildlife Society Bulletin, Vol. 32, No. 3 (Autumn, 2004), pp. 829-839n
Examples
surface_area(mcap)
#> [1] 0.2698101
surface_area(horseshoe)
#> [1] 127.2096
surface_area(mesh_to_2d(mcap))
#> [1] 0.08303158