I've points for a big triangle lets call it a, b, c. (a = (x, y) and so on).
Now I want to count the number of integral points inside the area enclosed by this triangle, so I first looked at Pick's theorem. The second approach that I considered was generating a list of points bounded by max, min of the triangle, and then checking if each point lies inside the triangle.
I used the Barycentric coordinates method to do this. It works however my triangle is pretty huge and my program is basically a brute force across points. How do I improve on this algorithm?
My code can be found here: https://bpaste.net/show/58433b6e389c