better checking of 3-intersections for inversekinematics