Function qsym2::rotsym::calc_rotational_symmetry

source ·
pub fn calc_rotational_symmetry(
    inertia_tensor: &Matrix3<f64>,
    thresh: f64,
) -> RotationalSymmetry
Expand description

Determines the rotational symmetry given an inertia tensor.

§Arguments

  • inertia_tensor - An inertia tensor which is a $3 \times 3$ matrix.
  • thresh - A threshold for comparing moments of inertia.

§Returns

The rotational symmetry as one of the RotationalSymmetry variants.

§Panics

Panics when the moments of inertia cannot be compared.