function
LieGroups.Rn.to_Matrix
Homogeneous matrix representation of an R^n translation
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 | [:] | |
| output | matrixRepresentation | Real | [size(element, 1) + 1,
size(element, 1) + 1] |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function to_Matrix "Homogeneous matrix representation of an R^n translation"
input Real element[:];
output Real matrixRepresentation[size(element, 1) + 1,
size(element, 1) + 1];
algorithm
matrixRepresentation := identity(size(element, 1) + 1);
matrixRepresentation[1:size(element, 1), size(element, 1) + 1] := element;
end to_Matrix;