isCurveIntersectingBorders method

bool isCurveIntersectingBorders(
  1. List<Array> coordinates
)

Implementation

bool isCurveIntersectingBorders(List<Array> coordinates) {
  // The distance from all points to the center should be less then test area radius
  var points = zip([coordinates[0], coordinates[1]]).toList();
  // logger.d(points);
  return points.any((el) => sqrt(pow(el[0], 2) + pow(el[1], 2)) >= arcminMax);
}