Linear interpolation of open and closed lines for Dart.
The code for closed lines is based on the flubber package, hence the name.
Also a Python version can be found here.
import 'package:dart_flubber/dart_flubber.dart';
main(){
// `first` and `second` are lists of points
var middle = interpolate(first, second, 0.5, closed: true);
}