functionto_Q
Return quaternion orientation object Q from orientation object R
Extends from Modelica.Icons.Function (Icon for functions).
Information
Syntax
Q = Frames.to_Q(R, Q_guess);
Description
This function returns a quaternion object Q computed from an orientation object R and depending on the initial guess Q_guess.
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Orientation | R | Orientation object to rotate frame 1 into frame 2 | |
| Quaternions.Orientation | Q_guess | Quaternions.nullRotation() | Guess value for output Q (there are 2 solutions; the one closer to Q_guess is used) |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Quaternions.Orientation | Q | Quaternions orientation object to rotate frame 1 into frame 2 |