forTangents -- added rotating calipers (O(nm)->O(n+m))