validate_mass_props | R Documentation |
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\}
of inertia
satisfy the triangle inequalities:
\lambda_1 < \lambda_2 + \lambda_3
\lambda_2 < \lambda_1 + \lambda_3
\lambda_3 < \lambda_1 + \lambda_2
validate_mass_props(mp)
mp |
Mass properties list containing the following named elements
|
TRUE if valid, stops otherwise
mp <- get_mass_props(test_table, "C.1")
validate_mass_props(mp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.