turf_dart icon indicating copy to clipboard operation
turf_dart copied to clipboard

Implement coordinate signing/normalization mechanism from #46

Open lukas-h opened this issue 3 years ago • 1 comments

As described in comment: https://github.com/dartclub/turf_dart/issues/46#issuecomment-1057465724

The decision was, to keep Position unsigned by default, but it can be converted to a signed coordinate easily!

The imagined behaviour with signed/unsigned is similar to DateTime, which can be local or UTC. The DateTime has conversion functions toLocal() and toUTC(), that return a new object. Internally it uses a boolean to save the state (local = true/false).


Tasks:

  • [x] Implementation
  • [ ] Documentation
  • [ ] Tests

lukas-h avatar Jun 20 '22 07:06 lukas-h

@armantorkzaban I will continue to work on this in the next days

lukas-h avatar Dec 20 '22 11:12 lukas-h