Get mass properties and uncertainties for a row in a data frame
Source:R/massprops.R
get_mass_props_and_unc.Rd
get_mass_props_and_unc()
is a convenience wrapper that combines the results of
get_mass_props()
and get_mass_props_unc()
.
Value
A list with the following named elements:
mass
Numeric mass.center_mass
Numeric 3-vector center of mass.point
Logical indicating point mass. The inertia of point masses is excluded from calculations.inertia
Numeric 3x3 matrix inertia tensor. The signs of the off-diagonal elements of the inertia tensor are determined byPOIconv
. For example, the \(xy\) element of the inertia tensor isIxy
ifPOIconv
is "-"; it is -Ixy
ifPOIconv
is "+".sigma_mass
Numeric mass uncertainty.sigma_center_mass
Numeric 3-vector center of mass uncertainties.sigma_inertia
Numeric 3x3 matrix inertia tensor uncertainties.
Examples
get_mass_props_and_unc(mp_table, "C.1.2.2.3.1.2.3")
#> $mass
#> [1] 0.1213345
#>
#> $center_mass
#> x y z
#> 70.54848 81.54389 44.52262
#>
#> $inertia
#> x y z
#> x 0.143256682 -0.0123144484 0.0012773920
#> y -0.012314448 0.1458692409 0.0003485651
#> z 0.001277392 0.0003485651 0.1309228273
#>
#> $point
#> [1] FALSE
#>
#> $sigma_mass
#> [1] 0.2892205
#>
#> $sigma_center_mass
#> x y z
#> 28.83321 29.16371 29.59459
#>
#> $sigma_inertia
#> x y z
#> x 0.37222944 0.02191471 0.02146982
#> y 0.02191471 0.36942277 0.02242524
#> z 0.02146982 0.02242524 0.37416478
#>