Skip to content
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

new method to construct an SO3 object #159

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

petercorke
Copy link
Collaborator

Construct an SO3 object from a vector and its rotated image. ie. given $v$ and ${\bf R} v$ compute $\bf R$. Includes tests and doco.

@petercorke petercorke added the enhancement New feature or request label Jan 21, 2025
Copy link
Collaborator

@myeatman-bdai myeatman-bdai left a comment

Choose a reason for hiding this comment

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

👍

@@ -725,6 +725,48 @@ def vval(v):

return cls(np.c_[x, y, z], check=True)

@classmethod
def RotatedVector(cls, v1: ArrayLike3, v2: ArrayLike3, tol=20) -> Self:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This basically accomplishes the feature requested here #37! Nice.

@myeatman-bdai myeatman-bdai merged commit 659ba24 into bdaiinstitute:master Jan 30, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants