-
Notifications
You must be signed in to change notification settings - Fork 92
[Issue-122] Pass shortest arg for interp; optionally enforce non-negative scalar … #123
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
Conversation
3b6e6e7
to
6664937
Compare
spatialmath/base/transforms2d.py
Outdated
@@ -937,6 +943,10 @@ def trinterp2(start, end, s): | |||
|
|||
th0 = math.atan2(start[1, 0], start[0, 0]) | |||
th1 = math.atan2(end[1, 0], end[0, 0]) | |||
if shortest: | |||
delta = (th1 - th0 + math.pi) % (math.pi * 2) - math.pi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets make this a function if the code is dupllicated twice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found an existing function - updates are pushed in 55a650c
e83f30e
to
55a650c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Sorry not to have piped up earlier. I think the option for |
Implements changes from discussions under Issue 122.