validate_mass_props_unc {massProps} | R Documentation |
Validate mass properties uncertainties
Description
validate_mass_props_unc()
ensures that a mass properties and uncertainties
list satisfies the following constraints:
-
sigma_mass
is non-missing and non-negative -
sigma_center_mass
is a 3-vector of non-missing non-negative values if
point
is FALSE, thesigma_inertia
contains no missing or negative values
Usage
validate_mass_props_unc(mp)
Arguments
mp |
Mass properties and uncertainties list containing the following named elements
|
Value
TRUE if valid, stops otherwise
Examples
mp <- get_mass_props_and_unc(sawe_table, "Widget")
validate_mass_props_unc(mp)
[Package massProps version 0.3.3 Index]