function
LieGroups.SO3.EulerB321.to_DCM
B321 Euler coordinates to DCM
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | element | Real | [3] | |
| output | R | Real | [3, 3] |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function to_DCM "B321 Euler coordinates to DCM"
input Real element[3];
output Real R[3, 3];
algorithm
R := LieGroups.SO3.Euler.to_Matrix(element,
{LieGroups.SO3.Euler.Axis.z, LieGroups.SO3.Euler.Axis.y, LieGroups.SO3.Euler.Axis.x}, true);
end to_DCM;