Skip to content

Best method to scale rotors? #105

Description

@swiftcoder

It's often really useful to be able to take fractions of a rotation, or multiples. I believe this should be equivalent to slerping the rotor with the identity rotor, but I'd love a gut check on that from someone who groks rotors better than I do.

i.e. does something like this make sense for scaling a rotation?

fn scale_rotation_by(rotor: Rotor3, factor: f32) -> Rotor3 {
  Rotor3::identity().slerp(rotor, factor)
}

Assuming that does work, any thoughts on adding methods to the rotor types for this sort of thing? I had initially assumed that the multiplication operator would be wired up to perform scaling, but that does not appear to be the case :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions