protected fun bends(g1: Geo, g2: Geo?, g3: Geo?): Int { val bend: Double = g1.crossNormalize(g2).distance(g3) - Math.PI / 2.0 if (Math.abs(bend) < .0001) { return STRAIGHT } else { if (bend < 0) { return BENDS_LEFT } } return BENDS_RIGHT }
Method that determines which way the angle between the three points bends .