validate_mass_props_unc()
ensures that a mass properties and uncertainties
list satisfies the following constraints:
sigma_mass
is non-missing and non-negativesigma_center_mass
is a 3-vector of non-missing non-negative valuesif
point
is FALSE, thesigma_inertia
contains no missing or negative values
Arguments
- mp
Mass properties and uncertainties list containing the following named elements
point
Logical indicating point mass, i.e., negligible inertiasigma_mass
mass uncertaintysigma_center_mass
center of mass uncertainty (3-dimensional numeric)sigma_inertia
Inertia tensor uncertainty (3x3 numeric matrix)
Examples
mp <- get_mass_props_and_unc(sawe_table, "Widget")
validate_mass_props_unc(mp)
#> [1] TRUE