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

Native quaternion implementation #166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Native quaternion implementation #166

wants to merge 1 commit into from

Conversation

arahlin
Copy link
Member

@arahlin arahlin commented Oct 14, 2024

This PR removes the dependency on boost::math::quaternion in favor of a minimal native implementation, which includes simple arithmetic and comparison operators, and conj, abs, norm and pow function implementations.

The class also provides versor() and is_versor() methods for creating and testing for unit quaternions, used in many pointing operations in the maps package.

The G3Quat object is a true serializeable G3FrameObject with a numpy buffer interface. The derived G3VectorQuat and G3MapQuat classes maintain backward compatibility for deserializing data stored on disk.

Closes #143.

This PR removes the dependency on boost::math::quaternion in favor of a minimal
native implementation, which includes simple arithmetic and comparison
operators, and conj, abs, norm and pow function implementations.

The class also provides versor() and is_versor() methods for creating and
testing for unit quaternions, used in many pointing operations in the maps
package.

The G3Quat object is a true serializeable G3FrameObject with a numpy buffer
interface.  The derived G3VectorQuat and G3MapQuat classes maintain backward
compatibility for deserializing data stored on disk.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect behavior of numpy.abs() on G3VectorQuat objects
1 participant