I am looking for the best (efficient algorithm for calculating the area of 2D polygon (especially for triangle given three points). I search on the web and I found the following link, but still I'm not sure that they are efficient in terms of memory cost or not (since my mesh is huge). I am wondering if there is any tricks in c++ (I'm newbie in c++) which could be applied on them:
here are the links:
(stackoverflow) How to determine if a point is in a 2D triangle?
http://www.softwareandfinance.com/Visual_CPP/Triangle_Area_Perimeter.html
It's worth to mention that the final target is to find out if a point is inside (NOT on the border) the polygon.
thanks for any help.