Shoelace Formula(en.wikipedia.org)
en.wikipedia.org
Shoelace Formula
http://en.wikipedia.org/wiki/Shoelace_formula
2 コメント
Sort of unrelated: reading Wikipedias mobile pages on a "standard" (15" in my case) screen is actually rather nice. Very clean look.
Oh, that is nice--think I'll start heading there by default (https://en.m.wikipedia.org/wiki/Main_Page).
If you take the shoelace formula and remove the absolute value then you still get the correct area up to floating point errors, just there may be a minus sign in front of it. If there is a minus sign, reverse the order of your vertices and boom you have counterclockwise order. Computing the normals after this is routine.