isClosed function

bool isClosed(
  1. List<Vector3> points, {
  2. double tolerance = 1e-6,
})

Implementation

bool isClosed(List<Vector3> points, {double tolerance = 1e-6}) =>
    (points.first - points.last).normSquared() <= tolerance * tolerance;