poly_bool_dart 0.1.0 poly_bool_dart: ^0.1.0 copied to clipboard
Boolean operations on polygons (union, intersection, difference, xor) (this library is a port for flutter of polybooljs.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add poly_bool_dart
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
poly_bool_dart: ^0.1.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:poly_bool_dart/build_log.dart';
import 'package:poly_bool_dart/epsilon.dart';
import 'package:poly_bool_dart/intersector.dart';
import 'package:poly_bool_dart/linked_list.dart';
import 'package:poly_bool_dart/polybool.dart';
import 'package:poly_bool_dart/segment_chainer.dart';
import 'package:poly_bool_dart/segment_fill.dart';
import 'package:poly_bool_dart/segment_selector.dart';
import 'package:poly_bool_dart/types.dart';