combine_mass_props: Combine mass properties

View source: R/massprops.R

combine_mass_propsR Documentation

Combine mass properties

Description

combine_mass_props() calculates the mass properties of an aggregate from a list of constituent mass properties.

Usage

combine_mass_props(mpl)

Arguments

mpl

A list of mass properties lists, each of which contains 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.

Details

See vignette("massProps", package = "massProps") for details on the algorithms employed.

Value

Combined mass properties list with the same named elements.

Examples

leaves <- names(igraph::neighbors(test_tree, "A.3", mode = "in"))
mpl <- Map(f = function(id) get_mass_props(test_table, id), leaves)
combine_mass_props(mpl)


massProps documentation built on April 4, 2025, 1:45 a.m.