add_radii_of_gyration: Add radii of gyration

View source: R/radii.R

add_radii_of_gyrationR Documentation

Add radii of gyration

Description

add_radii_of_gyration() adds calculated radii of gyration to a data frame of rolled-up mass properties.

Radii of gyration are calculated directly from moments of inertia and mass; they are not recursively-defined, and do not require a rollup method.

Usage

add_radii_of_gyration(df)

Arguments

df

A data frame with (at least) these columns: id, mass, Cx, Cy, Cz, Ixx, Iyy, Izz, Ixy, Ixz, Iyz, POIconv, Ipoint.

Value

A data frame with the same columns as df, plus radii of gyration in columns kx, ky, and kz.'

Examples

test_table_rollup <- rollup_mass_props(test_tree, test_table)
add_radii_of_gyration(test_table_rollup)


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