I have three geo points with latitude and longitude coordinates. How do determine that they are forming a triangle? They can lie on the same diagonal line and it will be a line.
A simple coordinate comparison is not suitable for a diagonal line, because all coordinates will be different.