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

Add a custom EulerAngles class #208

Open
deepanshs opened this issue Jul 19, 2022 · 0 comments
Open

Add a custom EulerAngles class #208

deepanshs opened this issue Jul 19, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@deepanshs
Copy link
Owner

Include EulerAngles class in mrsimulator

class EulerAngles:
    alpha: float
    beta: float
    gamma: float

Define a method __add__ to add two Euler angle.

e1 = EulerAngles(alpha=0.5, beta=3.14, gamma=1.14)
e2 = EulerAngles(alpha=1.2, beta=1.23, gamma=-2.0)
e3 = e1 + e2
@deepanshs deepanshs added this to the v0.8 milestone Jul 19, 2022
@deepanshs deepanshs added the enhancement New feature or request label Jul 19, 2022
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

No branches or pull requests

1 participant