I'm trying to understand the ear clipping algorithm for triangulation of a simple polygon G on the Euclidian plane.
It checks whether a vertex of G is convex; Let p, q, r be consecutive 3 vertices of G. q is said to be convex if the internal angle between the edges (p, q) and (q,r) is less than 180 degrees.
My question is: How do you determine computationally if q is convex?
Let $a\in G$ (in the interior) and $L$ the line by $p$ and $r$. If $q$ and $a$ are in the same semiplane respect to $L$, $q$ are not convex.
To check this, see (if exist or not) the intersection of $L$ with the segment $aq$