BIRDy/Utils/SymbolicModelData/inertiaMatrix.m

10 lines
283 B
Mathematica
Raw Normal View History

2021-04-29 09:42:38 +00:00
function [I] = inertiaMatrix(XXi, XYi, XZi, YYi, YZi, ZZi)
% Authors: Quentin Leboutet, Julien Roux, Alexandre Janot and Gordon Cheng
%
% This function simply bilds an inertia matrix from the values of inertias
I = [XXi, XYi, XZi; ...
XYi, YYi, YZi; ...
XZi, YZi, ZZi];
end