validate_mass_props {massProps} | R Documentation |
Validate mass properties
Description
validate_mass_props()
ensures that a mass properties list satisfies the following
constraints:
-
mass
is non-missing and positive -
center_mass
is a 3-vector of non-missing numeric values -
point
is TRUE or FALSE if
point
is FALSE:-
inertia
is positive definite eigenvalues
\{\lambda_1, \lambda_2, \lambda_3\}
ofinertia
satisfy the triangle inequalities:-
\lambda_1 < \lambda_2 + \lambda_3
-
\lambda_2 < \lambda_1 + \lambda_3
-
\lambda_3 < \lambda_1 + \lambda_2
-
-
Usage
validate_mass_props(mp)
Arguments
mp |
Mass properties list containing the following named elements
|
Value
TRUE if valid, stops otherwise
Examples
mp <- get_mass_props(test_table, "C.1")
validate_mass_props(mp)
[Package massProps version 0.3.3 Index]