replace expensive Math.atan2 by dot vectors computations. This improves the performances.

See discussion at https://groups.google.com/forum/#!topic/poly2tri/gDpr3lj3p0I
version 1.3.4