I want to test if a vector (a polygon vertex normal actually) is facing outward or inward. The polygon winds CW, edges goes from A (filled circle) to B (stroked circle). I have these normals a a result of preliminary calculations, now I want to test their facing.
Like this. Gray normals should be invalid while green normals should be validated. Probably I could do it by calculating angles, then simply compare them, but I really want to spare trigonometric calls here.
Is there any cheap method that compare only the "slopes" somehow? Something like this Bryce Boe CCW algorithm in this http://bryceboe.com/2006/10/23/line-segment-intersection-algorithm/