symforce icon indicating copy to clipboard operation
symforce copied to clipboard

C++ Values LocalCoordinates is backwards

Open aaron-skydio opened this issue 1 year ago • 1 comments

https://github.com/symforce-org/symforce/issues/395#issuecomment-2294152796

Values::LocalCoordinates(v) produces v - this, which is the negative of what's used everywhere else. On the geo types and cam types, and Values.local_coordinates in Python, it returns this - v

aaron-skydio avatar Aug 20 '24 01:08 aaron-skydio

As far as which is correct, I think the convention everything else uses is more intuitive, plus it's much less of a breakage to change Values::LocalCoordinates than everything else.

Above all else though, they should all be consistent (all of the instance methods, at least)

aaron-skydio avatar Aug 20 '24 01:08 aaron-skydio