inertia: Inertia tensor

View source: R/inertia.R

inertiaR Documentation

Inertia tensor

Description

Computes the symmetric tensor of moments of inertia

Usage

inertia(x, m = 1)

Arguments

x

n-by-3 matrix (x[1:n,1:3]) specifying the 3D Cartesian coordinates of n points

m

n-vector with point masses, or single scalar giving a uniform mass for all points (default is unity)

Value

Returns a 3-by-3 symmetric matrix

Author(s)

Danail Obreschkow

See Also

quadrupole, moments


obreschkow/cooltools documentation built on Nov. 16, 2024, 2:46 a.m.