MAMBO logo MAMBO & the MAMBO Toolbox MAMBO logo

FindOrientation — Extraction of relative orientation of observers [mathematica]

FindOrientation[A1,A2]

A1, A2: names of defined observers

The function FindOrientation returns the rotation matrix between the reference triads of the observers labeled by A1 and A2.

Restart;
DeclareObservers[A,B];
DeclarePoints[A,B];
DeclareTriads[a,b];
DefineObservers[{A,A,a},{B,B,b}];
DefineTriads[a,b,q,1,2,3];
FindOrientation[A,B] //MatrixForm

( 1 14 ( 1 + 13 Cos [ q ] ) 1 14 ( 2 - 2 Cos [ q ] - 3 14 Sin [ q ] ) 1 14 ( 3 - 3 Cos [ q ] + 2 14 Sin [ q ] ) 1 14 ( 2 - 2 Cos [ q ] + 3 14 Sin [ q ] ) 1 7 ( 2 + 5 Cos [ q ] ) 1 14 ( 6 - 6 Cos [ q ] - 14 Sin [ q ] ) 1 14 ( 3 - 3 Cos [ q ] - 2 14 Sin [ q ] ) 1 14 ( 6 - 6 Cos [ q ] + 14 Sin [ q ] ) 1 14 ( 9 + 5 Cos [ q ] ) ) TagBox[RowBox[List["(", "", GridBox[List[List[RowBox[List[FractionBox["1", "14"], " ", RowBox[List["(", RowBox[List["1", "+", RowBox[List["13", " ", RowBox[List["Cos", "[", "q", "]"]]]]]], ")"]]]], RowBox[List[FractionBox["1", "14"], " ", RowBox[List["(", RowBox[List["2", "-", RowBox[List["2", " ", RowBox[List["Cos", "[", "q", "]"]]]], "-", RowBox[List["3", " ", SqrtBox["14"], " ", RowBox[List["Sin", "[", "q", "]"]]]]]], ")"]]]], RowBox[List[FractionBox["1", "14"], " ", RowBox[List["(", RowBox[List["3", "-", RowBox[List["3", " ", RowBox[List["Cos", "[", "q", "]"]]]], "+", RowBox[List["2", " ", SqrtBox["14"], " ", RowBox[List["Sin", "[", "q", "]"]]]]]], ")"]]]]], List[RowBox[List[FractionBox["1", "14"], " ", RowBox[List["(", RowBox[List["2", "-", RowBox[List["2", " ", RowBox[List["Cos", "[", "q", "]"]]]], "+", RowBox[List["3", " ", SqrtBox["14"], " ", RowBox[List["Sin", "[", "q", "]"]]]]]], ")"]]]], RowBox[List[FractionBox["1", "7"], " ", RowBox[List["(", RowBox[List["2", "+", RowBox[List["5", " ", RowBox[List["Cos", "[", "q", "]"]]]]]], ")"]]]], RowBox[List[FractionBox["1", "14"], " ", RowBox[List["(", RowBox[List["6", "-", RowBox[List["6", " ", RowBox[List["Cos", "[", "q", "]"]]]], "-", RowBox[List[SqrtBox["14"], " ", RowBox[List["Sin", "[", "q", "]"]]]]]], ")"]]]]], List[RowBox[List[FractionBox["1", "14"], " ", RowBox[List["(", RowBox[List["3", "-", RowBox[List["3", " ", RowBox[List["Cos", "[", "q", "]"]]]], "-", RowBox[List["2", " ", SqrtBox["14"], " ", RowBox[List["Sin", "[", "q", "]"]]]]]], ")"]]]], RowBox[List[FractionBox["1", "14"], " ", RowBox[List["(", RowBox[List["6", "-", RowBox[List["6", " ", RowBox[List["Cos", "[", "q", "]"]]]], "+", RowBox[List[SqrtBox["14"], " ", RowBox[List["Sin", "[", "q", "]"]]]]]], ")"]]]], RowBox[List[FractionBox["1", "14"], " ", RowBox[List["(", RowBox[List["9", "+", RowBox[List["5", " ", RowBox[List["Cos", "[", "q", "]"]]]]]], ")"]]]]]], Rule[GridBoxAlignment, List[Rule["Columns", List[List[Center]]], Rule["ColumnsIndexed", List[]], Rule["Rows", List[List[Baseline]]], Rule["RowsIndexed", List[]]]], Rule[GridBoxSpacings, List[Rule["Columns", List[Offset[0.27999999999999997`], List[Offset[0.7`]], Offset[0.27999999999999997`]]], Rule["ColumnsIndexed", List[]], Rule["Rows", List[Offset[0.2`], List[Offset[0.4`]], Offset[0.2`]]], Rule["RowsIndexed", List[]]]]], "", ")"]], Function[BoxForm`e$, MatrixForm[BoxForm`e$]]]


Toolbox functions