BanTheRewind/Cinder-Triangle — pull request #1 by gaborpapp (2012-10-25 05:25:02+00:00)
Title: fixed contains(), added barycentric coordinates

Contains does not work for me in AdvancedSample, probably because of rounding errors, the areas do not sum up properly to be equal to the whole triangle. I am proposing another method using [barycentric coordinates](http://en.wikipedia.org/wiki/Barycentric_coordinate_system_%28mathematics%29).

Barycentric coordinates would be very useful for adding TriangleMapping similarly to RectMapping, which would provide a convenient way to find the location of a point related to the triangle vertices on a grid for example.