Is.Obtuse triangle function/algorithm

59 Views Asked by At

I am trying to compute a function (in R although what I am looking for is the algorithm) that:

Given 3 points in the plane return a 1 if the triangle formed by these 3 points is obtuse and 0 in other case.

I'd rather prefer not to use the pythagorean theorem classification of triangles neither having to compute the three angles of the triangle and looking for the obtuse one.

Thanks in advance.