You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested in using a pow/exponent function on the Quaternion type to concisely represent repeated rotations. For quaternions specifically, I found an algorithm for this on the Mathematics StackExchange. However, this concept also applies to other representations of rotations, so it may be more appropriate to add it to the Rotation trait with an implementation for each implementing type. I'd be willing to help implement this functionality for an eventual PR, but wanted feedback on its design before starting.
Example public api:
pubtraitRotation:Sized + Copy + One//where ...{// Other functions.../// Create a new rotation representing `exponent` copies of the original rotationfnpow(&self,exponent: <Self::SpaceasEuclideanSpace>::Scalar) -> Self;/// Modifies this rotation to represent `exponent` copies of the original rotationfnpow_assign(&mutself,exponent: <Self::SpaceasEuclideanSpace>::Scalar);}
The text was updated successfully, but these errors were encountered:
I'm interested in using a pow/exponent function on the Quaternion type to concisely represent repeated rotations. For quaternions specifically, I found an algorithm for this on the Mathematics StackExchange. However, this concept also applies to other representations of rotations, so it may be more appropriate to add it to the Rotation trait with an implementation for each implementing type. I'd be willing to help implement this functionality for an eventual PR, but wanted feedback on its design before starting.
Example public api:
The text was updated successfully, but these errors were encountered: