Determine if a point is inside a triangle formed by 3 points with given latitude/longitude

geolocation, geometry, javascript

Solution

The main question is whether you can use a 2D approximation for this (in other words, is your triangle small enough).

If so, something simple like barycentric coordinates will work well.

Problem

I have 3 points ( lat , lon ) that form a triangle.How can i find if a point is inside this triangle?

Original source