Skip to content

mass-properties overview


Table of contents


utils

inertiaAboutOrigin

The principal inertia and its frame of a body about its own origin, given the body's mass properties about its centre of mass (com, in body space): the parallel-axis theorem applied to the inertia tensor, then diagonalized again.

Signature

export declare function inertiaAboutOrigin(
  mass: number,
  com: Point3,
  principal: Point3,
  frame: Point4
): { principal: Point3; frame: Point4 }