Conversation
…e_between_directions to quaternion_utils Agent-Logs-Url: https://github.com/VoxleOne/SpinStep/sessions/72548df6-0009-4914-a816-0ea24ebb090e Co-authored-by: VoxleOne <119956342+VoxleOne@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add new methods for quaternion utilities
Add forward_vector_from_quaternion, direction_to_quaternion, and angle_between_directions to quaternion_utils
Mar 27, 2026
VoxleOne
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three new direction/quaternion utility functions in
spinstep/utils/quaternion_utils.py.forward_vector_from_quaternion(q)— Extract forward (look) direction viaR.from_quat(q).apply([0, 0, -1])direction_to_quaternion(direction)— Convert a 3D direction to an orientation quaternion viaR.align_vectors(), with zero-vector guardangle_between_directions(d1, d2)— Angular distance (radians) between two direction vectors viaarccos(dot)with normalization and clampingAll three are exported from
utils/__init__.pyand added to__all__in both modules. 12 new tests cover identity, roundtrip, edge cases, and mathematical correctness.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.