get_mass_props {massProps} | R Documentation |
Get mass properties for a row in a data frame
Description
get_mass_props()
creates a mass properties list from a selected row in a data frame.
Usage
get_mass_props(df, id)
Arguments
df |
A data frame with (at least) these columns: |
id |
The |
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, thexy
element of the inertia tensor isIxy
ifPOIconv
is "-"; it is -Ixy
ifPOIconv
is "+".
Examples
get_mass_props(mp_table, "C.1.2.2.3.1.2.3")
[Package massProps version 0.3.3 Index]