Skip to content

implement centerOfMass feature #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tiinsy
Copy link

@tiinsy tiinsy commented Apr 17, 2025

More test functions could be implemented including file testing (just unit testing at the moment)

{Map<String, dynamic>? properties = const {}, })

{
List<List<double>> coords =[];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List<Position> coords -> we have this Position type instead of List<double> in turf dart for better typisation

import 'package:test/test.dart';
import 'package:turf/src/center_of_mass.dart';

void main () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are those all the tests from Turf JS?

If there are more, incl. file testing, then it would be great to implement those too

@lukas-h lukas-h linked an issue May 2, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

centerOfMass
2 participants