Skip to content

spatial/r3: Add method to Rotation for stringing multiple rotations #1804

Open
@soypat

Description

@soypat

Add a way to combine rotations to avoid this: r := Rotation(quat.Mul(quat.Number(q), quat.Number(r)))

// Then combines rotations r and q such that 
// q follows r.
func (r Rotation) Then(q Rotation) Rotation {
	return Rotation(quat.Mul(quat.Number(q), quat.Number(r)))
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions