Given a sequence of (integer, integer) points, say (p1, ..., pn), which define the lines (p_i, p_i+1) for 1 <= i < n, plus the line (p_n, p_1). The resulting lines have the additional property that they don’t intersect pairwise. What would be the best way to calculate the resulting volume?
Given a sequence of (integer, integer) points, say (p1, …, pn) , which define
Share
Here is a nice code blurb with explanations as to why it works: http://alienryderflex.com/polygon_area/
You should also read the previous incarnation of this question: How do I calculate the area of a 2d polygon?